sdktypes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sdktypes lists the closed sets of pkg/sdk/types in a spec, from the SDK's own description of them (types.All), as package collectors lists gohai's collectors. A field of a DSL that takes one of a closed set of values has the type, with validate:"enum", and never a string with oneof, which validate refuses.

Index

Constants

View Source
const Kind = "type"

Kind is the kind of the spec's type terms.

Variables

This section is empty.

Functions

func Append

func Append(
	s guide.Spec,
) guide.Spec

Append is s with a section of the SDK's closed sets at the end.

func AppendOf

func AppendOf(
	s guide.Spec,
	ts []types.TypeSpec,
) guide.Spec

AppendOf is s with a section of ts at the end.

func Terms

func Terms(
	ts []types.TypeSpec,
) []guide.Term

Terms are ts as terms of a spec: what each is and its values, and how a field uses it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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