mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-12 21:11:13 +00:00
fix: remove omitempty suffix from docs gen
This commit is contained in:
@@ -51,6 +51,8 @@ func buildEnvEntry(child reflect.StructField, childValue reflect.Value, parentPa
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tag = strings.TrimSuffix(tag, ",omitempty")
|
||||||
|
|
||||||
value := childValue.Interface()
|
value := childValue.Interface()
|
||||||
|
|
||||||
entry := EnvEntry{
|
entry := EnvEntry{
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ func buildMdEntry(child reflect.StructField, childValue reflect.Value, parentPat
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tag = strings.TrimSuffix(tag, ",omitempty")
|
||||||
|
|
||||||
value := childValue.Interface()
|
value := childValue.Interface()
|
||||||
|
|
||||||
entry := MarkdownEntry{
|
entry := MarkdownEntry{
|
||||||
@@ -88,6 +90,8 @@ func buildMdMapEntry(child reflect.StructField, parentPath string, entries *[]Ma
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tag = strings.TrimSuffix(tag, ",omitempty")
|
||||||
|
|
||||||
mapPath := parentPath + tag + ".[name]."
|
mapPath := parentPath + tag + ".[name]."
|
||||||
valueType := fieldType.Elem()
|
valueType := fieldType.Elem()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user