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

infer

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToSchema

func ToSchema(stats []FieldStat, threshold float64) []byte

ToSchema emits a candidate schema.yaml. Fields at or above threshold presence are marked required.

Types

type FieldStat

type FieldStat struct {
	Name    string
	Present float64
	Types   []string
	Example string
}

FieldStat summarises one observed frontmatter field across a corpus.

func Observe

func Observe(docs []model.Doc) []FieldStat

Observe tallies field presence and types across docs.

Jump to

Keyboard shortcuts

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