affine

package
v0.24.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package affine - names for all of Tapestry's built-in data types: primitives, structured types, and arrays thereof.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsList

func IsList(a Affinity) bool

true if one of three list types

Types

type Affinity

type Affinity string

Affinity - name of one of Tapestry's built-in data type.

const (
	None       Affinity = ""
	Bool       Affinity = "bool"
	Num        Affinity = "num"
	Text       Affinity = "text"
	Record     Affinity = "record"
	NumList    Affinity = "num_list"
	TextList   Affinity = "text_list"
	RecordList Affinity = "record_list"
)

func Element

func Element(list Affinity) (ret Affinity)

return the affinity of an affine list, or blank if not a list.

func (Affinity) String

func (a Affinity) String() (ret string)

a helper for input/output of affinities including logging: returns the stored string or "unknown affinity" if the string is empty.

Jump to

Keyboard shortcuts

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