MCPcopy Index your code
hub / github.com/coder/coder / fieldNames

Function fieldNames

coderd/database/gentest/models_test.go:114–120  ·  view source on GitHub ↗
(fields []reflect.StructField)

Source from the content-addressed store, hash-verified

112}
113
114func fieldNames(fields []reflect.StructField) []string {
115 names := make([]string, len(fields))
116 for i, field := range fields {
117 names[i] = field.Name
118 }
119 return names
120}
121
122func allFields(rt reflect.Type) []reflect.StructField {
123 fields := make([]reflect.StructField, 0, rt.NumField())

Callers 5

TestViewSubsetTemplateFunction · 0.85
TestViewSubsetWorkspaceFunction · 0.85
TestViewSubsetChatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected