(t *types.Basic)
| 702 | } |
| 703 | |
| 704 | func toJavaScriptType(t *types.Basic) string { |
| 705 | switch t.Kind() { |
| 706 | case types.UntypedInt: |
| 707 | return "Int" |
| 708 | case types.Byte: |
| 709 | return "Uint8" |
| 710 | case types.Rune: |
| 711 | return "Int32" |
| 712 | case types.UnsafePointer: |
| 713 | return "UnsafePointer" |
| 714 | default: |
| 715 | name := t.String() |
| 716 | return strings.ToUpper(name[:1]) + name[1:] |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | func is64Bit(t *types.Basic) bool { |
| 721 | return t.Kind() == types.Int64 || t.Kind() == types.Uint64 |
no test coverage detected
searching dependent graphs…