fixtures_test

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const PublicConst = "public"

public

Variables

This section is empty.

Functions

This section is empty.

Types

type Dep

type Dep struct {
	Int int `json:"int"`
}

type Dep2 added in v0.0.6

type Dep2 struct {
	String string `json:"string"`
}

type MyEnum added in v0.0.3

type MyEnum string
const (
	MyEnumValue1 MyEnum = "enum-1"
	MyEnumValue2 MyEnum = "enum-2"
)

type MyEnum2 added in v0.0.7

type MyEnum2 string
const (
	MyEnum21 MyEnum2 = "1"
	MyEnum22 MyEnum2 = "2"
)

type Primitives

type Primitives struct {
	// comment here
	Int                   int                    `json:"int"`
	Int64                 int64                  `json:"int_64"`
	Float32               float32                `json:"float_32"`
	Float64               float64                `json:"float_64"`
	Bool                  bool                   `json:"bool"`
	String                string                 `json:"string"`
	Bytes                 []byte                 `json:"bytes"`
	Map                   map[string]string      `json:"map"`
	MapInterface          map[string]interface{} `json:"map_interface"`
	Slice                 []int                  `json:"slice"`
	Omitempty             int                    `json:"omitempty,omitempty"`
	Required              int                    `json:"some_int,required"`
	Ptr                   *int                   `json:"ptr"`
	NullableBool          bool                   `json:"nullable_bool" nullable:"true"`
	NullableBoolOmitempty bool                   `json:"nullable_bool_omitempty,omitempty" nullable:"true"`
	Interface             interface{}            `json:"-"`
}

type Struct

type Struct struct {
	Dep Dep `json:"dep"`
	Dep2
	Constant  MyEnum
	Constant2 MyEnum2
}

type StructSlice added in v0.0.6

type StructSlice []Dep

Jump to

Keyboard shortcuts

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