kyEnum

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code interface {
	// Code returns the integer number of current code.
	Code() int

	// Description returns the brief description for current code.
	Description() string
}

Code is universal code interface definition.

type EnumCode

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

EnumCode is an implementer for interface Code for internal usage only.

func New

func New(code int, description string) EnumCode

func (EnumCode) Code

func (c EnumCode) Code() int

Code returns the integer number of current code.

func (EnumCode) Description

func (c EnumCode) Description() string

Description returns the brief description for current code.

func (EnumCode) String

func (c EnumCode) String() string

String returns current code as a string.

type UploadEventState

type UploadEventState Code

type UserEventState

type UserEventState Code

type UserState

type UserState Code

type UserType

type UserType Code

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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