enum

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitStruct

func InitStruct(this interface{})

InitStruct 初始化

func InitStructString

func InitStructString(this interface{})

InitStructString 初始化

Types

type Data

type Data struct {
	ID   int
	Name string
}

Data 枚举数据

type DataString

type DataString struct {
	ID   string
	Name string
}

DataString 字符串类型

type Struct

type Struct struct {
	// contains filtered or unexported fields
}

Struct 枚举结构体

func (*Struct) Datas

func (es *Struct) Datas() []Data

Datas 数据

func (*Struct) Entrys

func (es *Struct) Entrys() map[int]string

Entrys 条目

func (*Struct) Keys

func (es *Struct) Keys() []int

Keys 键

func (*Struct) Names

func (es *Struct) Names() map[string]string

Names 名字

func (*Struct) Values

func (es *Struct) Values() []string

Values 值

type StructString

type StructString struct {
	// contains filtered or unexported fields
}

StructString 字符串类型

func (*StructString) Datas

func (ess *StructString) Datas() []DataString

Datas 数据

func (*StructString) Entrys

func (ess *StructString) Entrys() map[string]string

Entrys 条目

func (*StructString) Keys

func (ess *StructString) Keys() []string

Keys 键

func (*StructString) Names

func (ess *StructString) Names() map[string]string

Names 名字

func (*StructString) Values

func (ess *StructString) Values() []string

Values 值

Jump to

Keyboard shortcuts

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