MCPcopy Create free account
hub / github.com/Autodesk/AutomaticComponentToolkit / getGoBasicType

Function getGoBasicType

Source/buildbindinggo.go:647–659  ·  view source on GitHub ↗
(paramType string)

Source from the content-addressed store, hash-verified

645}
646
647func getGoBasicType(paramType string) (string, error) {
648 switch paramType {
649 case "uint8", "uint16", "uint32", "uint64", "int8", "int16", "int32", "int64", "bool":
650 return paramType, nil
651 case "single":
652 return "float32", nil
653 case "double":
654 return "float64", nil
655 case "pointer":
656 return "uint64", nil
657 }
658 return "", errors.New("Invalid basic type: " + paramType)
659}
660
661func paramFunction(paramType string, paramPass string) (string, error) {
662 paramFunctionStr := ""

Callers 1

writeGoMethodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected