Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/256dpi/gcode
/ getBool
Function
getBool
cmd/gcode/command.go:55–61 ·
view source on GitHub ↗
(field interface{})
Source
from the content-addressed store, hash-verified
53
}
54
55
func
getBool(field
interface
{}) bool {
56
if
val, ok := field.(bool); ok {
57
return
val
58
}
59
60
return
false
61
}
62
63
func
getString(field
interface
{}) string {
64
if
str, ok := field.(string); ok {
Callers
1
parseCommand
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected