Enhance documentation for API client and vehicle structures; improve test function naming for clarity
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 24s
This commit is contained in:
24
utils.go
24
utils.go
@ -58,7 +58,7 @@ func vinCheck(vin string) (bool, string) {
|
||||
return valid, retVin
|
||||
}
|
||||
|
||||
// transcodeDigits .
|
||||
// transcodeDigits transcodes VIN digits to a numeric value
|
||||
func transcodeDigits(vin string) int {
|
||||
var digitSum = 0
|
||||
var code int
|
||||
@ -114,30 +114,8 @@ func transcodeDigits(vin string) int {
|
||||
return digitSum
|
||||
}
|
||||
|
||||
// isNilFixed .
|
||||
// func isNil(i interface{}) bool {
|
||||
// if i == nil {
|
||||
// return true
|
||||
// }
|
||||
// switch reflect.TypeOf(i).Kind() {
|
||||
// case reflect.Ptr, reflect.Map, reflect.Array, reflect.Chan, reflect.Slice:
|
||||
// return reflect.ValueOf(i).IsNil()
|
||||
// }
|
||||
// return false
|
||||
// }
|
||||
|
||||
// timeTrack .
|
||||
// func timeTrack(name string) {
|
||||
// start := time.Now()
|
||||
// fmt.Printf("%s took %v\n", name, time.Since(start))
|
||||
// }
|
||||
|
||||
// contains .
|
||||
// func contains(s []string, str string) bool {
|
||||
// for _, v := range s {
|
||||
// if v == str {
|
||||
// return true
|
||||
// }
|
||||
// }
|
||||
// return false
|
||||
// }
|
||||
|
Reference in New Issue
Block a user