token

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 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 Token

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

Token - this is a parsed descriptor from command-line

func (*Token) Get

func (arg *Token) Get() Token

Get - return a copy of the current element token

func (*Token) GetType

func (arg *Token) GetType() types.ArgTypes

GetType - Return the type for the current token

func (*Token) GetValue

func (arg *Token) GetValue() any

GetValue - Return the value for the current token

func (*Token) Set

func (arg *Token) Set(t types.ArgTypes, v any) (err error)

Set - Set the types.ArgTypes and value for the current Token

func (*Token) SetType

func (arg *Token) SetType(t types.ArgTypes) (err error)

SetType - Set the types.ArgTypes for the current Token

func (*Token) SetValue

func (arg *Token) SetValue(value any) (err error)

SetValue - Set the value for the current token

Jump to

Keyboard shortcuts

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