Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterpreterIdentity ¶
InterpreterIdentity normalizes an interpreter path for policy comparisons.
func Split ¶
Split starts programs at column-zero interpreter headers outside shell constructs. Headers stay with their programs; all other source bytes remain unchanged. Only an omitted params directive inherits the preceding complete object.
func SplitSource ¶
SplitSource returns authored program slices without validating headers or expanding inherited directives. It is also suitable for unfinished display input.
Types ¶
type HeaderError ¶
HeaderError locates a rejected header in the submitted program. Line is one-based and counts CRLF as one line terminator, just like header parsing.
func (*HeaderError) Error ¶
func (e *HeaderError) Error() string
func (*HeaderError) Unwrap ¶
func (e *HeaderError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.