MCPcopy Create free account
hub / github.com/cloudwan/gohan / normField

Function normField

cli/client/output.go:136–142  ·  view source on GitHub ↗

normField returns field prefixed with schema ID.

(field, schemaID string)

Source from the content-addressed store, hash-verified

134
135//normField returns field prefixed with schema ID.
136func normField(field, schemaID string) string {
137 if strings.Contains(field, ".") {
138 return field
139 }
140
141 return fmt.Sprintf("%s.%s", schemaID, field)
142}

Callers 3

createResourcesTableMethod · 0.70
fieldFilterMethod · 0.70

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected