MCPcopy Index your code
hub / github.com/cortexlabs/cortex / appendVal

Function appendVal

pkg/lib/configreader/reader.go:1137–1139  ·  view source on GitHub ↗

Helpers

(slice interface{}, val interface{})

Source from the content-addressed store, hash-verified

1135//
1136
1137func appendVal(slice interface{}, val interface{}) interface{} {
1138 return reflect.Append(reflect.ValueOf(slice), reflect.ValueOf(val)).Interface()
1139}
1140
1141// destStruct must be a pointer to a struct
1142func setField(val interface{}, destStruct interface{}, fieldName string) error {

Callers 2

StructListFunction · 0.85
InterfaceStructListFunction · 0.85

Calls 1

AppendMethod · 0.80

Tested by

no test coverage detected