Documentation ¶
Index ¶
Constants ¶
View Source
const ExportedConstant = "constant"
Variables ¶
View Source
var ExportedVar = "var"
Functions ¶
This section is empty.
Types ¶
type GroupedNotASourceStruct ¶
type GroupedNotASourceStruct struct{}
godoc on the GenDecl for testing.
type GroupedSample ¶
type GroupedSample struct {
StructField Sample
}
GroupedSample is a source struct.
mog annotation:
type NotASourceStruct ¶
type NotASourceStruct struct{}
NotASourceStruct is a struct with a comment, but is not a source struct for mog.
type NotASourceStructNoComment ¶
type NotASourceStructNoComment struct{}
type Sample ¶
type Sample struct { BoolField bool // mog: target=StringPtrField StringField string IntField int MapField map[string]string // contains filtered or unexported fields }
Sample source struct with mog annotations, used for testing.
mog annotation:
name=Core target=github.com/hashicorp/mog/internal/targetpkgone.TheSample ignore-fields=ExtraField
func ExportedFunction ¶
func ExportedFunction() *Sample
Click to show internal directories.
Click to hide internal directories.