MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / hasUnsettableStructFields

Function hasUnsettableStructFields

internal/config/clone.go:87–97  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

85}
86
87func hasUnsettableStructFields(v reflect.Value) bool {
88 if v.Kind() != reflect.Struct {
89 return false
90 }
91 for i := 0; i < v.NumField(); i++ {
92 if !reflect.New(v.Type()).Elem().Field(i).CanSet() {
93 return true
94 }
95 }
96 return false
97}

Callers 1

cloneRuntimeValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected