common

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusEnums = _StatusEnums{
	// contains filtered or unexported fields
}

StatusEnums is the enum helper for Status.

Functions

This section is empty.

Types

type Level

type Level string

Level is a string type for testing cross-package field types.

const (
	LevelDebug Level = "debug"
	LevelInfo  Level = "info"
	LevelWarn  Level = "warn"
	LevelError Level = "error"
)

type Priority

type Priority int

Priority is a numeric type for testing cross-package field types.

const (
	PriorityLow    Priority = 1
	PriorityMedium Priority = 2
	PriorityHigh   Priority = 3
)

type Status

type Status int

Status is an enum type in common package for testing cross-package references. enumgen:@enum(string)

const (
	StatusActive Status = iota + 1
	StatusInactive
	StatusPending
)

func (Status) IsValid

func (x Status) IsValid() bool

IsValid reports whether x is a valid Status.

func (Status) String

func (x Status) String() string

String returns the string representation of Status.

Jump to

Keyboard shortcuts

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