Help us shape the future of Go! Take the 2026 Go Developer Survey

docs

package
v4.99.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 17 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTitleExceptions = map[string]string{

	"acl":   "ACL",
	"acls":  "ACLs",
	"api":   "API",
	"apis":  "APIs",
	"ca":    "CA",
	"cidr":  "CIDR",
	"cidrs": "CIDRs",
	"db":    "DB",
	"dbs":   "DBs",
	"dhcp":  "DHCP",
	"iam":   "IAM",
	"iot":   "IOT",
	"ip":    "IP",
	"ips":   "IPs",
	"ipv4":  "IPv4",
	"ipv6":  "IPv6",
	"mfa":   "MFA",
	"ml":    "ML",
	"oauth": "OAuth",
	"vpc":   "VPC",
	"vpcs":  "VPCs",
	"vpn":   "VPN",
	"vpns":  "VPNs",
	"waf":   "WAF",
	"wafs":  "WAFs",

	"aws": "AWS",
	"gcp": "GCP",
}

Functions

func DefaultTitleTransformer

func DefaultTitleTransformer(table *schema.Table) string

func TableOptionsDescriptionTransformer added in v4.79.0

func TableOptionsDescriptionTransformer(tableOptions any, jsonSchema string) (schema.Transform, error)

Types

type Format

type Format int
const (
	FormatMarkdown Format = iota
	FormatJSON
)

func FormatFromString

func FormatFromString(s string) (Format, error)

func (Format) String

func (r Format) String() string

type Generator

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

func NewGenerator

func NewGenerator(pluginName string, tables schema.Tables) *Generator

NewGenerator creates a new generator for the given tables. The tables are sorted by name. pluginName is optional and is used in markdown only

func (*Generator) Generate

func (g *Generator) Generate(dir string, format Format) error

func (*Generator) GenerateJSON added in v4.81.0

func (g *Generator) GenerateJSON(dir string, format Format) error

Jump to

Keyboard shortcuts

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