expr

package
v3.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 2 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

View Source
var Root = &RootExpr{}

Root is the design root expression for the docs plugin.

Functions

This section is empty.

Types

type RootExpr

type RootExpr struct {
	// UseJSONTags instructs the docs generator to use JSON struct tags
	// specified via Meta ("struct:tag:json") as field names.
	UseJSONTags bool
	// InlineRefs instructs the docs generator to inline $ref schemas by
	// replacing them with copies of their referenced definitions where
	// possible. Cycles are preserved by leaving $ref in place when needed.
	InlineRefs bool

	// IncludedTypes are the user types to force-emit into definitions.
	IncludedTypes []expr.UserType
}

RootExpr keeps track of docs plugin configuration toggles.

func (*RootExpr) DependsOn

func (*RootExpr) DependsOn() []eval.Root

DependsOn tells the eval engine to run the goa DSL first.

func (*RootExpr) EvalName

func (r *RootExpr) EvalName() string

EvalName returns the name used in error messages.

func (*RootExpr) IncludeTypes added in v3.22.6

func (r *RootExpr) IncludeTypes(ts ...expr.UserType)

IncludeTypes registers the given user types for forced definition emission.

func (*RootExpr) Packages

func (*RootExpr) Packages() []string

Packages returns the import path to the Go packages that make up the DSL. This is used to skip frames that point to files in these packages when computing the location of errors.

func (*RootExpr) WalkSets

func (*RootExpr) WalkSets(eval.SetWalker)

WalkSets implements eval.Root. No-op; configuration is global.

Jump to

Keyboard shortcuts

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