pkl-go

module
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0

README

= pkl-go

This library exposes Go bindings for the Pkl configuration language.

It allows you to embed Pkl into your Go application, complete with code generation for full type safety and ease of use.

The full documentation for this library can be found on our https://pkl-lang.org/go/current/index.html[documentation site].

To get up and going, reference the https://pkl-lang.org/go/current/quickstart.html[quick start guide].

When upgrading pkl-go, reference the https://pkl-lang.org/go/current/CHANGELOG.html[changelog] for details.

Directories

Path Synopsis
cmd
pkl-gen-go/generatorsettings
Code generated from Pkl module `pkl.golang.GeneratorSettings`.
Code generated from Pkl module `pkl.golang.GeneratorSettings`.
codegen
snippet-tests/output/bugholder
Code generated from Pkl module `org.foo.BugHolder`.
Code generated from Pkl module `org.foo.BugHolder`.
snippet-tests/output/bugholder/bugkind
Code generated from Pkl module `org.foo.BugHolder`.
Code generated from Pkl module `org.foo.BugHolder`.
snippet-tests/output/bugholder/bugkindtwo
Code generated from Pkl module `org.foo.BugHolder`.
Code generated from Pkl module `org.foo.BugHolder`.
snippet-tests/output/cyclicmodule
Code generated from Pkl module `CyclicModule`.
Code generated from Pkl module `CyclicModule`.
snippet-tests/output/emptyopenmodule
Code generated from Pkl module `EmptyOpenModule`.
Code generated from Pkl module `EmptyOpenModule`.
snippet-tests/output/explicitname
Code generated from Pkl module `ExplicitName`.
Code generated from Pkl module `ExplicitName`.
snippet-tests/output/explicitname/configtype
Code generated from Pkl module `ExplicitName`.
Code generated from Pkl module `ExplicitName`.
snippet-tests/output/extendabstractclass
Code generated from Pkl module `ExtendsAbstractClass`.
Code generated from Pkl module `ExtendsAbstractClass`.
snippet-tests/output/extendmodule
Code generated from Pkl module `ExtendModule`.
Code generated from Pkl module `ExtendModule`.
snippet-tests/output/extendopenclass
Code generated from Pkl module `ExtendingOpenClass`.
Code generated from Pkl module `ExtendingOpenClass`.
snippet-tests/output/hiddenproperties
Code generated from Pkl module `HiddenProperties`.
Code generated from Pkl module `HiddenProperties`.
snippet-tests/output/moduletype
Code generated from Pkl module `ModuleType`.
Code generated from Pkl module `ModuleType`.
snippet-tests/output/moduleusinglib
Code generated from Pkl module `ModuleUsingLib`.
Code generated from Pkl module `ModuleUsingLib`.
snippet-tests/output/override
Code generated from Pkl module `override`.
Code generated from Pkl module `override`.
snippet-tests/output/override2
Code generated from Pkl module `Override2`.
Code generated from Pkl module `Override2`.
snippet-tests/output/structtags
Code generated from Pkl module `StructTags`.
Code generated from Pkl module `StructTags`.
snippet-tests/output/support/lib
Code generated from Pkl module `lib`.
Code generated from Pkl module `lib`.
snippet-tests/output/support/lib/myenum
Code generated from Pkl module `lib`.
Code generated from Pkl module `lib`.
snippet-tests/output/support/lib2/cities
Code generated from Pkl module `lib2`.
Code generated from Pkl module `lib2`.
snippet-tests/output/support/lib3
Code generated from Pkl module `lib3`.
Code generated from Pkl module `lib3`.
snippet-tests/output/support/lib4
Code generated from Pkl module `lib4`.
Code generated from Pkl module `lib4`.
snippet-tests/output/support/openmodule
Code generated from Pkl module `MyModule`.
Code generated from Pkl module `MyModule`.
snippet-tests/output/union
Code generated from Pkl module `union`.
Code generated from Pkl module `union`.
snippet-tests/output/union/accountdisposition
Code generated from Pkl module `union`.
Code generated from Pkl module `union`.
snippet-tests/output/union/city
Code generated from Pkl module `union`.
Code generated from Pkl module `union`.
snippet-tests/output/union/county
Code generated from Pkl module `union`.
Code generated from Pkl module `union`.
snippet-tests/output/union/noodles
Code generated from Pkl module `union`.
Code generated from Pkl module `union`.
snippet-tests/output/unionnamekeyword
Code generated from Pkl module `UnionNameKeyword`.
Code generated from Pkl module `UnionNameKeyword`.
snippet-tests/output/unionnamekeyword/_type
Code generated from Pkl module `UnionNameKeyword`.
Code generated from Pkl module `UnionNameKeyword`.
pkl
test_fixtures/gen/any
Code generated from Pkl module `any`.
Code generated from Pkl module `any`.
test_fixtures/gen/classes
Code generated from Pkl module `classes`.
Code generated from Pkl module `classes`.
test_fixtures/gen/collections
Code generated from Pkl module `collections`.
Code generated from Pkl module `collections`.
test_fixtures/gen/datasize
Code generated from Pkl module `datasize`.
Code generated from Pkl module `datasize`.
test_fixtures/gen/duration
Code generated from Pkl module `duration`.
Code generated from Pkl module `duration`.
test_fixtures/gen/dynamic
Code generated from Pkl module `dynamic`.
Code generated from Pkl module `dynamic`.
test_fixtures/gen/nullables
Code generated from Pkl module `nullables`.
Code generated from Pkl module `nullables`.
test_fixtures/gen/primitives
Code generated from Pkl module `primitives`.
Code generated from Pkl module `primitives`.
test_fixtures/gen/unions
Code generated from Pkl module `unions`.
Code generated from Pkl module `unions`.
test_fixtures/gen/unions/number
Code generated from Pkl module `unions`.
Code generated from Pkl module `unions`.
test_fixtures/gen/unions/othernumbers
Code generated from Pkl module `unions`.
Code generated from Pkl module `unions`.
test_fixtures/gen/unknown_type
Code generated from Pkl module `unknown_type`.
Code generated from Pkl module `unknown_type`.

Jump to

Keyboard shortcuts

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