option

package
v0.0.0-...-56ca850 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const (
	Check        = "check"
	Choices      = "options"
	Class        = "class"
	Colour       = "colour"
	Help         = "helpUrl"
	Input        = "input"
	InputsInline = "inputsInline"
	Max          = "max"
	Min          = "min"
	Mutator      = "mutator"
	Name         = "name"
	Next         = "nextStatement"
	Output       = "output"
	Precision    = "precision"
	Prev         = "previousStatement"
	Text         = "text"
	Tooltip      = "tooltip"
	Type         = "type"
	Value        = "value"
	// custom options
	Decor = "decor"
)

Variables

This section is empty.

Functions

func Args

func Args(i int) string

block dict key for a group of args args are zero indexed

Example
fmt.Println(Args(0), Args(1))
Output:

	args0 args1

func InputOption

func InputOption(src interface {
	Lookup(key string) (ret string, okay bool)
}) (ret string, okay bool)

extract the desired blockly input type ( a string name ) from a dictionary of struct tags. w/o a tag, we wind up with an "input value" ( a generic term ) fix? if really needed to decouple this, could have an "input" factory

func Message

func Message(i int) string

block dict key for a group of args args are zero indexed; but format strings are one indexed ex. "message0": "%1",

Example
fmt.Println(Message(0), Message(1))
Output:

	message0 message1

Types

This section is empty.

Jump to

Keyboard shortcuts

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