examples

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 5 Imported by: ? 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 examples holds the example kojo.yaml files of the configuration reference. They are files, not strings in the generator, so that the tests of this package can load each one with the real loader: an example that stops being valid fails `go test`, and `make schema` copies them into the docs as they are.

A file starts with its caption: a comment that ends at the first blank line. The reference page shows the caption as a paragraph and the rest of the file as the example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sections

func Sections() (map[string][]Example, error)

Sections returns the snippets of sections/ by the top-level key of kojo.yaml they illustrate. sections/<key>.yaml comes first, then sections/<key>.<variant>.yaml in name order.

Types

type Example

type Example struct {
	// File is the path of the file in this directory.
	File string
	// Title is the heading of a complete example. Section snippets have none.
	Title string
	// Caption says what the example sets up. It may use Markdown.
	Caption string
	// YAML is the example as the docs show it: the file without its caption.
	YAML string
}

Example is one example file.

func Deployments

func Deployments() ([]Example, error)

Deployments returns the complete kojo.yaml examples, one per supported deployment.

Jump to

Keyboard shortcuts

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