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

Method Scan

model/plugin_model/type.go:117–148  ·  view source on GitHub ↗
(src any)

Source from the content-addressed store, hash-verified

115}
116
117func (s *Status) Scan(src any) error {
118 switch v := src.(type) {
119 case string:
120 *s = ParseStatus(v)
121 case []byte:
122 *s = ParseStatus(string(v))
123 case int:
124 *s = Status(v)
125 case int64:
126 *s = Status(v)
127 case int32:
128 *s = Status(v)
129 case int16:
130 *s = Status(v)
131 case int8:
132 *s = Status(v)
133 case uint:
134 *s = Status(v)
135 case uint64:
136 *s = Status(v)
137 case uint32:
138 *s = Status(v)
139 case uint16:
140 *s = Status(v)
141 case uint8:
142 *s = Status(v)
143 default:
144 *s = Enable
145
146 }
147 return nil
148}
149
150func (s *Status) String() string {
151 switch *s {

Callers

nothing calls this directly

Calls 2

ParseStatusFunction · 0.85
StatusTypeAlias · 0.70

Tested by

no test coverage detected