Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SegmentIdentifier ¶
type SegmentIdentifier struct { Name string InterfaceName string Versions []SegmentIdentifier Version int }
SegmentIdentifier represent a segment definition for the generator
type SegmentUnmarshalerGenerator ¶
type SegmentUnmarshalerGenerator struct {
// contains filtered or unexported fields
}
SegmentUnmarshalerGenerator generates unmarshaler for segment definitions
func NewSegmentUnmarshaler ¶
func NewSegmentUnmarshaler(segment SegmentIdentifier, packageName string, fileSet *token.FileSet, file *ast.File) *SegmentUnmarshalerGenerator
NewSegmentUnmarshaler generates an unmarhsaler generator for the provided segment
type VersionedSegmentUnmarshalerGenerator ¶
type VersionedSegmentUnmarshalerGenerator struct {
// contains filtered or unexported fields
}
VersionedSegmentUnmarshalerGenerator is a generator for unmarshaler of versioned segments
func NewVersionedSegmentUnmarshaler ¶
func NewVersionedSegmentUnmarshaler(segment SegmentIdentifier, packageName string, fileSet *token.FileSet, file *ast.File) *VersionedSegmentUnmarshalerGenerator
NewVersionedSegmentUnmarshaler creates a new Unmarshalergenerator for versioned segments
Source Files ¶
Click to show internal directories.
Click to hide internal directories.