testsource

package
v0.0.0-...-84db66d Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yes enumOptionalBool = (-1 + iota)
	No
	Maybe
)
View Source
const (
	SA enumString = "va" // sddA
	SB enumString = "vb" // sddB
	SC enumString = "vc" // sddC
	SD enumString = "vd" // sddD
)
View Source
const SpecialValue notAnEnum = "dummy" // gomacro:no-enum
View Source
const (
	Value = 1 // not named const are ignored
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic1

type Basic1 int

type Basic2

type Basic2 bool

type Basic3

type Basic3 float64

type Basic4

type Basic4 string

type Comp

type Comp struct {
	A, B uint8
}

type ComplexStruct

type ComplexStruct struct {
	DictWithTag map[int]int `json:"with_tag"`
	NoJSON      EnumInt     `json:"-"`

	Time  time.Time
	B     string
	Value ItfType
	L     ItfList
	A     int
	E     EnumInt
	E2    EnumUInt

	Date     MyDate
	F        [5][5]bool
	Imported subpackage.StructWithComment
	EnumMap  map[EnumInt]bool
	// contains filtered or unexported fields
}

type ConcretType1

type ConcretType1 struct {
	List2 []int
	V     int
}

type ConcretType2

type ConcretType2 struct {
	D float64
}

A regular comment gomacro:SQL special sql comment gomacro:SQL another special sql comment

type Enum

type Enum int // test it does not collide with subpackage.Enum
const (
	A2 Enum = iota
)

type EnumInt

type EnumInt int

this is represented by int values, but actually has only positive values

const (
	Ai EnumInt = iota // sdsd
	Bi                // sdsdB
	Ci                // sdsdC

	Di // sdsdD
)

type EnumUInt

type EnumUInt uint
const (
	A EnumUInt = iota // sdsd
	B                 // sdsdB
	C                 // sdsdC
	D                 // sdsdD

)

type ItfList

type ItfList []ItfType

type ItfType

type ItfType interface {
	// contains filtered or unexported methods
}

type ItfType2

type ItfType2 interface {
	// contains filtered or unexported methods
}

type MyDate

type MyDate time.Time

type RecursiveType

type RecursiveType struct {
	Children []RecursiveType
}

type StructWithExternalRef

type StructWithExternalRef struct {
	Field1 subpackage.NamedSlice
	Field2 subpackage.NamedSlice
	Field3 int
}

type WithEmbeded

type WithEmbeded struct {
	ComplexStruct
	// contains filtered or unexported fields
}

type WithOpaque

type WithOpaque struct {
	F1 StructWithExternalRef `gomacro-opaque:"dart"`
	F2 RecursiveType         `gomacro-opaque:"dart, typescript"`
	F3 StructWithExternalRef `gomacro-opaque:" typescript"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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