MCPcopy Index your code
hub / github.com/256dpi/gcode / getString

Function getString

cmd/gcode/command.go:63–69  ·  view source on GitHub ↗
(field interface{})

Source from the content-addressed store, hash-verified

61}
62
63func getString(field interface{}) string {
64 if str, ok := field.(string); ok {
65 return str
66 }
67
68 return ""
69}
70
71func getFloat(field interface{}) float64 {
72 str := getString(field)

Callers 2

parseCommandFunction · 0.85
getFloatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected