types

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bool int = iota
	Int
	Uint
	Float
	String
	List
)

Variables

View Source
var Names = []string{"Bool", "Int", "Uint", "Float", "String", "List"}

Names provides the string associated with the Concrete type.

Functions

This section is empty.

Types

type Concrete

type Concrete interface {
	Bool() bool
	Int() int64
	Duration() time.Duration
	Uint() uint64
	Float() float64
	String() string
	List() []string
}

Concrete should return a value for the correct concrete type and panic otherwise, except for String which should always yield a value

type Type

type Type interface {
	Name() string
	Type() string
	Aliases() []string
	Group() string
	Tags() []string
	Description() string
	Documentation() string
	Default() string
	FromString(string) error
	Concrete
}

Type represents a variable

Jump to

Keyboard shortcuts

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