diff --git a/error_formatter.go b/error_formatter.go index e4e1d37..533f441 100644 --- a/error_formatter.go +++ b/error_formatter.go @@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ + package jsonnet import ( diff --git a/value.go b/value.go index 69874ce..b69a3bb 100644 --- a/value.go +++ b/value.go @@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ + package jsonnet import ( diff --git a/vm.go b/vm.go index ef089ae..44c812a 100644 --- a/vm.go +++ b/vm.go @@ -83,7 +83,7 @@ func (vm *VM) TLACode(key string, val string) { vm.tla[key] = vmExt{value: val, isCode: true} } -// Importer sets Importer to use during evaluation (import callback) +// Importer sets Importer to use during evaluation (import callback). func (vm *VM) Importer(i Importer) { vm.importer = i } @@ -120,7 +120,7 @@ func (vm *VM) evaluateSnippet(filename string, snippet string, kind evalKind) (o return output, nil } -// NativeFunction registers a native function +// NativeFunction registers a native function. func (vm *VM) NativeFunction(f *NativeFunction) { vm.nativeFuncs[f.Name] = f } @@ -151,8 +151,8 @@ func (vm *VM) EvaluateSnippetStream(filename string, snippet string) (docs []str return } -// EvaluateSnippetStream evaluates a string containing Jsonnet code to an array. -// The array is returned as an array of JSON strings. +// EvaluateSnippetMulti evaluates a string containing Jsonnet code to key-value +// pairs. The keys are field name strings and the values are JSON strings. // // The filename parameter is only used for error messages. func (vm *VM) EvaluateSnippetMulti(filename string, snippet string) (files map[string]string, formattedErr error) {