Documentation ¶
Index ¶
- Constants
- func CleanString(s string) string
- func GetFieldNumber(deterministicFieldNumbers bool, counter int, input ...string) (int, int)
- func GetProtoType(s string) string
- func SortMapKeys[V any](m map[string]V) []string
- func ToPlural(s string) string
- func ToSnakeCase(s string) string
- func WriteFile(outputFile, s string) error
Constants ¶
View Source
const (
Repeated = "repeated "
)
Variables ¶
This section is empty.
Functions ¶
func GetFieldNumber ¶ added in v0.1.6
GetFieldNumber returns a "consistent" field number for the proto field based on the input strings if deterministicFieldNumbers is true, otherwise it returns the incremented counter input (ascending field numbers). The maximum field number is 18999. The first return value is the field number and the second is the counter i
func GetProtoType ¶ added in v0.0.3
GetProtoType converts Ontology type to golang type
func SortMapKeys ¶ added in v0.0.5
SortMapKeys returns the keys of the map sorted ba sort.Strings.
func ToSnakeCase ¶
ToSnakeCase converts camel case to snake case and deletes spaces
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.