MCPcopy Create free account
hub / github.com/astercloud/aster / splitTag

Function splitTag

pkg/util/json.go:228–243  ·  view source on GitHub ↗

splitTag 分割 JSON tag

(tag string)

Source from the content-addressed store, hash-verified

226
227// splitTag 分割 JSON tag
228func splitTag(tag string) []string {
229 var result []string
230 for tag != "" {
231 i := 0
232 for i < len(tag) && tag[i] != ',' {
233 i++
234 }
235 result = append(result, tag[:i])
236 if i < len(tag) {
237 tag = tag[i+1:]
238 } else {
239 break
240 }
241 }
242 return result
243}
244
245// isEmptyValue 检查是否是空值
246func isEmptyValue(v reflect.Value) bool {

Callers 1

normalizeStructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected