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

writ

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package writ compiles policy source into validated IL. Parsing, syntax trees, and static checks are private implementation details of Load; evaluation and programmatic IL construction remain separate packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(src string) (*il.Policy, []diag.Diagnostic)

Load parses and compiles policy source. The policy is non-nil iff no error-severity diagnostics were produced; warnings ride along either way and never block.

Types

This section is empty.

Directories

Path Synopsis
Package diag holds source positions and diagnostics for the writ policy language.
Package diag holds source positions and diagnostics for the writ policy language.
Package eval is SPEC §8 as a pure function: order-independent evaluation of a compiled policy against one (user, host, account) request.
Package eval is SPEC §8 as a pure function: order-independent evaluation of a compiled policy against one (user, host, account) request.
Package il is writ's intermediate language: the compiled rule format per SPEC §10–11.
Package il is writ's intermediate language: the compiled rule format per SPEC §10–11.
Package object defines the provider-independent objects consumed by Writ.
Package object defines the provider-independent objects consumed by Writ.

Jump to

Keyboard shortcuts

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