Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/decomp/decomp
/ getType
Function
getType
cmd/go-post/typecheck.go:57–62 ·
view source on GitHub ↗
(t string)
Source
from the content-addressed store, hash-verified
55
}
56
57
func
getType(t string) string {
58
if
!isType(t) {
59
return
""
60
}
61
return
t[len(
"type "
):]
62
}
63
64
func
isType(t string) bool {
65
return
strings.HasPrefix(t,
"type "
)
Callers
2
typecheck
Function · 0.85
typecheck1
Function · 0.85
Calls
1
isType
Function · 0.85
Tested by
no test coverage detected