Help us shape the future of Go! Take the 2026 Go Developer Survey

goimpl

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRawVM

func MakeRawVM(importPaths []string, extCode map[string]string, tlaCode map[string]string, maxStack int) *jsonnet.VM

MakeRawVM returns a Jsonnet VM with some extensions of Tanka, including: - extended importer - extCode and tlaCode applied - native functions registered This is exposed because Go is used for advanced use cases, like finding transitive imports or linting.

Types

type JsonnetGoImplementation

type JsonnetGoImplementation struct {
	Path string
}

func (*JsonnetGoImplementation) MakeEvaluator

func (i *JsonnetGoImplementation) MakeEvaluator(importPaths []string, extCode map[string]string, tlaCode map[string]string, maxStack int) types.JsonnetEvaluator

type JsonnetGoVM

type JsonnetGoVM struct {
	// contains filtered or unexported fields
}

func (*JsonnetGoVM) EvaluateAnonymousSnippet

func (vm *JsonnetGoVM) EvaluateAnonymousSnippet(snippet string) (string, error)

func (*JsonnetGoVM) EvaluateFile

func (vm *JsonnetGoVM) EvaluateFile(filename string) (string, error)

Jump to

Keyboard shortcuts

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