sourcepkg

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

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

func (Sample) ExportedMethod

func (Sample) ExportedMethod()

ExportedMethod does nothing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL