Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Aliases map[string][]string = map[string][]string{
"OscalCompleteSchema": {"OscalModels"},
}
View Source
var ComplexTypes map[string]string = map[string]string{
"array": "[]",
}
View Source
var GoPrimitive map[string]bool = map[string]bool{ "string": true, "bool": true, "float64": true, "int": true, }
View Source
var Imports []string = []string{"time"}
View Source
var PrimitiveAndCustomTypes map[string]string = map[string]string{
"string": "string",
"boolean": "bool",
"number": "float64",
"integer": "int",
"date-time": "time.Time",
}
Functions ¶
func FmtFieldName ¶
FmtFieldName formats a string as a struct key
Example:
FmtFieldName("foo_id") Output: FooID
Types ¶
type BaseFlags ¶
type BaseFlags struct { InputFile string // -f / --input-file OutputFile string // -o / --output-file Pkg string // -p / --pkg Tags string // -t / --tags }
BaseFlags represents command-line flags for the base go-oscal command.
type GeneratorConfig ¶
type GeneratorConfig struct {
// contains filtered or unexported fields
}
func NewGeneratorConfig ¶
func NewGeneratorConfig(tags []string, pkgName string) GeneratorConfig
type RefQueue ¶
type RefQueue struct {
// contains filtered or unexported fields
}
func NewRefQueue ¶
func NewRefQueue() RefQueue
Click to show internal directories.
Click to hide internal directories.