gentest

package
v0.0.0-...-719e117 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Fst = MyEnumFirst

Variables

View Source
var (
	MyEnumByName = map[string]MyEnum{
		"MyEnum.FIRST":  MyEnumFirst,
		"MyEnum.SECOND": MyEnumSecond,
	}
	MyEnumByValue = map[MyEnum]string{
		MyEnumFirst:  "MyEnum.FIRST",
		MyEnumSecond: "MyEnum.SECOND",
	}
)
View Source
var Stringy = map[MyEnum]string{
	MyEnumFirst:  "1st",
	MyEnumSecond: "2nd",
}

Functions

This section is empty.

Types

type Binary

type Binary []byte

type Int32

type Int32 int32

type MyEnum

type MyEnum int32
const (
	MyEnumFirst  MyEnum = 1
	MyEnumSecond MyEnum = 2
)

func (MyEnum) MarshalJSON

func (e MyEnum) MarshalJSON() ([]byte, error)

func (MyEnum) String

func (e MyEnum) String() string

func (*MyEnum) UnmarshalJSON

func (e *MyEnum) UnmarshalJSON(b []byte) error

type NestedColor

type NestedColor struct {
	Rgb *Rgb `thrift:"1,required" json:"rgb"`
}

type Rgb

type Rgb struct {
	Red   *int32 `thrift:"1,required" json:"red"`
	Green *int32 `thrift:"2,required" json:"green"`
	Blue  *int32 `thrift:"3,required" json:"blue"`
}

type St

type St struct {
	B *Binary `thrift:"1,required" json:"b"`
	S *String `thrift:"2,required" json:"s"`
	I *Int32  `thrift:"3,required" json:"i"`
}

type StSet

type StSet struct {
	StringSet map[string]struct{} `thrift:"1,required" json:"string_set"`
	I32Set    map[int32]struct{}  `thrift:"2,required" json:"i32_set"`
	BinarySet map[string]struct{} `thrift:"3,required" json:"binary_set"`
}

type String

type String string

Directories

Path Synopsis
withFlags

Jump to

Keyboard shortcuts

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