MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getBeforeColonPart

Function getBeforeColonPart

pkg/gogen/gogen.go:29–34  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

27}
28
29func getBeforeColonPart(s string) string {
30 if colonIdx := strings.Index(s, ":"); colonIdx != -1 {
31 return s[:colonIdx]
32 }
33 return s
34}
35
36func GenerateMetaMapConsts(buf *strings.Builder, constPrefix string, rtype reflect.Type, embedded bool) {
37 if !embedded {

Callers 1

GenerateMetaMapConstsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected