Documentation
¶
Overview ¶
Package starlarksource preserves configuration source and its original location through stack merges and YAML serialization, without importing an interpreter.
Index ¶
Constants ¶
View Source
const (
Tag = "!starlark"
)
Variables ¶
This section is empty.
Functions ¶
func IsEncoded ¶
IsEncoded reports whether value was produced by the YAML loader's !starlark tag. Unlike Is, it requires source identity written by Encode, so an ordinary string that merely begins with the tag text (a quoted scalar or included file) remains data.
Types ¶
type Source ¶
type Source struct {
Code string `json:"-"`
File string `json:"file"`
Line int32 `json:"line"`
Column int `json:"column,omitempty"`
}
Source is an inline function body with its original YAML location.
Click to show internal directories.
Click to hide internal directories.