generate

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(s store.Store) *Generator

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, opts Options) ([]byte, error)

type Options

type Options struct {
	Username string
	Sort     SortMode
	Template string
}

type SortMode

type SortMode string
const (
	SortLanguage SortMode = "language"
	SortCategory SortMode = "category"
	SortFlat     SortMode = "flat"
)

Jump to

Keyboard shortcuts

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