MCPcopy
hub / github.com/duke-git/lancet / Kind

Method Kind

structs/field.go:78–80  ·  view source on GitHub ↗

Kind returns the field's kind Play: https://go.dev/play/p/wg4NlcUNG5o

()

Source from the content-addressed store, hash-verified

76// Kind returns the field's kind
77// Play: https://go.dev/play/p/wg4NlcUNG5o
78func (f *Field) Kind() reflect.Kind {
79 return f.rvalue.Kind()
80}
81
82// IsSlice check if a struct field type is slice or not
83// Play: https://go.dev/play/p/MKz4CgBIUrU

Callers 15

TestRandBytesFunction · 0.80
mustBeFunctionFunction · 0.80
sliceValueFunction · 0.80
sliceElemTypeFunction · 0.80
FlattenFunction · 0.80
flattenRecursiveFunction · 0.80
getFieldFunction · 0.80
SortByFieldFunction · 0.80
compareValueFunction · 0.80
cloneMethod · 0.80
isNillableFunction · 0.80
ToStringFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestRandBytesFunction · 0.64
TestField_KindFunction · 0.64
TestStruct_FieldsFunction · 0.64
TestStruct_FieldFunction · 0.64