MCPcopy Create free account
hub / github.com/dolanor/rip / structOf

Function structOf

handler.go:372–378  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

370}
371
372func structOf(v any) reflect.Value {
373 val := reflect.ValueOf(v)
374 if val.Kind() == reflect.Pointer {
375 val = val.Elem()
376 }
377 return val
378}
379
380func fieldValue(st reflect.Value, field string) any {
381 val := st.FieldByNameFunc(func(f string) bool {

Callers 2

updatePathIDFunction · 0.85
handleGetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected