constant

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntConst

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

IntConst defines a constant integer value.

func Int

func Int(v int) IntConst

Int returns a constant integer value.

func (IntConst) String

func (i IntConst) String() string

String returns a string representation of the constant integer value.

type StrConst

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

StrConst defines a constant string value.

func Str

func Str(v string) StrConst

Str returns a constant string value.

func (StrConst) String

func (v StrConst) String() string

String returns a string representation of the constant string value.

type ValueConst

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

ValueConst defines a constant value of any type.

func Value

func Value(v any) ValueConst

Value returns a constant value of any type.

func (ValueConst) String

func (v ValueConst) String() string

String returns a string representation of the constant value.

Jump to

Keyboard shortcuts

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