prim

package
v0.24.6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

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{
		"comment": []interface{}{"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{
		"comment": "A sequence of characters of any length spanning multiple lines. See also: text.",
	},
}

A sequence of characters of any length spanning multiple lines. See also: text.

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

An integer or floating point value.

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

A sequence of characters of any length, all on one line. See also: lines.

Functions

This section is empty.

Types

type Bool

type Bool int

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.

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