fields

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 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 Definition

type Definition struct {
	Name    string
	Kind    Kind
	Values  []string // populated for KindEnum
	Default string
}

type Field

type Field struct {
	Type
	Key, Value     string
	TypeBlobDigest markl.Id // lookup hint for lazy definition resolution
}

type Kind

type Kind byte
const (
	KindString     Kind = iota // WIT: string
	KindEnum                   // WIT: enum
	KindBool                   // WIT: bool
	KindU32                    // WIT: u32
	KindS32                    // WIT: s32
	KindListString             // WIT: list<string>
)

func KindFromString

func KindFromString(s string) Kind

type Type

type Type byte
const (
	TypeNormal   Type = iota
	TypeId            // object and zettel identifiers
	TypeHash          // content-addressable digests and signatures
	TypeError         // error messages
	TypeType          // object type identifiers
	TypeUserData      // user-provided content (descriptions, tags values)
	TypeHeading       // section headings
)

Source Files

  • main.go

Jump to

Keyboard shortcuts

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