MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / ParseKind

Function ParseKind

model/plugin_model/type.go:71–80  ·  view source on GitHub ↗
(string2 string)

Source from the content-addressed store, hash-verified

69}
70
71func ParseKind(string2 string) Kind {
72 switch string2 {
73 case "inner", "0":
74 return InnerKind
75 case "global", "1":
76 return OpenKind
77 default:
78 return OpenKind
79 }
80}
81
82func (k *Kind) Value() (driver.Value, error) {
83 if *k == unKnownKind {

Callers 3

pluginItemUnmarshalYAMLFunction · 0.92
UnmarshalJSONMethod · 0.85
ScanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected