MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getConfigKeyType

Function getConfigKeyType

pkg/wconfig/settingsconfig.go:730–740  ·  view source on GitHub ↗
(configKey string)

Source from the content-addressed store, hash-verified

728}
729
730func getConfigKeyType(configKey string) reflect.Type {
731 ctype := reflect.TypeOf(SettingsType{})
732 for i := 0; i < ctype.NumField(); i++ {
733 field := ctype.Field(i)
734 jsonTag := utilfn.GetJsonTag(field)
735 if jsonTag == configKey {
736 return field.Type
737 }
738 }
739 return nil
740}
741
742func getConfigKeyNamespace(key string) string {
743 colonIdx := strings.Index(key, ":")

Callers 1

SetBaseConfigValueFunction · 0.85

Calls 1

GetJsonTagFunction · 0.92

Tested by

no test coverage detected