prim

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: 2 Imported by: 1

Documentation

Overview

Common type definitions.

Index

Constants

This section is empty.

Variables

View Source
var Z_Types = typeinfo.TypeSet{
	Name: "prim",
	Comment: []string{
		"Common type definitions.",
	},

	Str: z_str_list,
	Num: z_num_list,
}

package listing of type data

View Source
var Zt_Bool = typeinfo.Str{
	Name: "bool",
	Options: []string{
		"false",
		"true",
	},
	Markup: map[string]any{
		"--": []string{"A true or false value.", "Even though the definition here uses a string,", "the tell loading code ( and the go generated code )", "have shortcuts which understand how to handle unquoted ( literal ) values."},
	},
}

bool, a type of str enum.

View Source
var Zt_Lines = typeinfo.Str{
	Name: "lines",
	Markup: map[string]any{
		"--": "A sequence of characters of any length spanning multiple lines. See also: text.",
	},
}

Lines, a type of str.

View Source
var Zt_Num = typeinfo.Num{
	Name: "num",
	Markup: map[string]any{
		"--": "An integer or floating point value.",
	},
}

Num, a type of num.

View Source
var Zt_Text = typeinfo.Str{
	Name: "text",
	Markup: map[string]any{
		"--": "A sequence of characters of any length, all on one line. See also: lines.",
	},
}

Text, a type of str.

Functions

func Register added in v0.24.7

func Register(reg func(any))

gob like registration

Types

type Bool

type Bool int

Bool, a type of str enum.

const (
	C_Bool_False Bool = iota
	C_Bool_True
)

The enumerated values of Bool.

func MakeBool

func MakeBool(str string) (ret Bool, okay bool)

func (Bool) String

func (op Bool) String() (ret string)

Jump to

Keyboard shortcuts

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