Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorType = Type{Name: "error", Kind: TypeBuiltin}
Functions ¶
func Contains ¶
func Contains[T comparable](l util.LinkedList[T], el T) bool
Types ¶
type Document ¶
type Document struct {
Structs NamedList[*StructDescriptor]
}
func (Document) AllChildrenOf ¶
func (d Document) AllChildrenOf(parent StructDescriptor) []StructDescriptor
func (Document) AllParentsOf ¶
func (d Document) AllParentsOf(each StructDescriptor) []StructDescriptor
func (Document) ChildrenOf ¶
func (d Document) ChildrenOf(parent StructDescriptor) []StructDescriptor
type FieldDescriptor ¶
type FieldDescriptor struct {
Name string
Description string
Type *TypeDescriptor
OneOf []string
Enum []string
}
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type StructDescriptor ¶
type Type ¶
func (Type) QualifiedName ¶
type TypeDescriptor ¶
type TypeDescriptor struct {
Kind TypeDescriptorKind
Name string
Elems []*TypeDescriptor
}
func (*TypeDescriptor) IsList ¶
func (t *TypeDescriptor) IsList() bool
func (*TypeDescriptor) IsUnion ¶
func (t *TypeDescriptor) IsUnion() bool
type TypeDescriptorKind ¶
type TypeDescriptorKind uint8
const ( TypeDescriptorKindUnknown TypeDescriptorKind = iota TypeDescriptorKindBasic TypeDescriptorKindList TypeDescriptorKindUnion )
Click to show internal directories.
Click to hide internal directories.