Skip to content

Commit 035db2f

Browse files
authored
Use types for go 1.12
1 parent cf6a1b0 commit 035db2f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

templates/go/client.go.twig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,6 @@ func toString(arg interface{}) string {
433433
return strconv.FormatFloat(v, 'f', -1, 64)
434434
case bool:
435435
return strconv.FormatBool(v)
436-
case complex64:
437-
return strconv.FormatComplex(complex128(v), 'f', -1, 64)
438-
case complex128:
439-
return strconv.FormatComplex(v, 'f', -1, 128)
440436
case reflect.Value:
441437
return toString(v.Interface())
442438
case fmt.Stringer:
@@ -453,7 +449,7 @@ func flatten(params interface{}, prefix string, result *map[string]string) error
453449
}
454450

455451
paramsType := reflect.TypeOf(params)
456-
if paramsType.Kind() == reflect.Pointer {
452+
if paramsType.Kind() == reflect.Ptr {
457453
paramsType = paramsType.Elem()
458454
}
459455
switch paramsType.Kind() {

0 commit comments

Comments
 (0)