Package starlarksource preserves configuration source and its original location
through stack merges and YAML serialization, without importing an interpreter.
IsEncoded reports whether value was produced by the YAML loader's !starlark tag.
Unlike Is, it requires the location header written by Encode, so an ordinary string
that merely begins with the tag text (a quoted scalar or included file) remains data.
Protect hides Starlark scalar source from Go template evaluation. The returned
restore function reinserts readable source after all template passes finish.
Existing YAML without Starlark is returned unchanged.