reflection work so far...
This commit is contained in:
24
internal/constmap/tpl/consts_param_map.go.tpl
Normal file
24
internal/constmap/tpl/consts_param_map.go.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- /*gotype: r00t2.io/cryptparse/internal/constmap.ParamConsts*/ -}}
|
||||
package cryptparse
|
||||
|
||||
/*
|
||||
THIS FILE IS AUTOMATICALLY GENERATED.
|
||||
DO NOT EDIT.
|
||||
SEE internal/constmap/ FOR DETAILS.
|
||||
*/
|
||||
|
||||
var (
|
||||
// tlsUriParamStrMap contains a map of the constant string *name* of a tlsUriParam as mapped to its *value* (at time of generation).
|
||||
tlsUriParamStrMap map[string]string = map[string]string{
|
||||
{{- range $p := . }}
|
||||
{{ printf "%#v" $p.ConstName }}: {{ printf "%#v" $p.UriParamName }},
|
||||
{{- end }}
|
||||
}
|
||||
|
||||
// tlsUriStrParamMap contains a map of the *value* (at time of generation) of tlsUriParam constants to the constant string *name*.
|
||||
tlsUriStrParamMap map[string]string = map[string]string{
|
||||
{{- range $p := . }}
|
||||
{{ printf "%#v" $p.UriParamName }}: {{ printf "%#v" $p.ConstName }},
|
||||
{{- end }}
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user