Documentation ¶
Overview ¶
Package jsii provides utilities that user code can leverage to facilitate working with libraries generated by the `jsii-pacmak` tool. This includes type conversion helpers as well as utilities to manage the runtime process' lifecycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close()
Close finalizes the runtime process, signalling the end of the execution to the jsii kernel process, and waiting for graceful termination. The best practice is to defer call thins at the beginning of the "main" function.
func UncheckedCast ¶
UncheckedCast performs an un-checked cast from a value of type F to type T. It is the caller's responsibility to ensure the dynamic type of f is compatible with T. Incorrect use results in undefined behavior.
This function returns an error if the original object is not a jsii-managed object, or the target type is not a jsii-manageable interface.
Types ¶
type Bool ¶
type Bool bool
Bool is the jsii type system's bool type. It shares the underlying representation of bool and can be used as Option[Bool].
func (Bool) FromOption__ ¶
type Json ¶
type Json map[string]interface{}
Json is the jsii type system's JSON/object type. It shares the underlying representation of map[string]interface{} and can be used as Option[Json].
func (Json) FromOption__ ¶
type Map ¶
Map is the jsii type system's map type. It shares the underlying representation of map[string]T and can be used as Option[Map[T]].
func (Map[T]) FromOption__ ¶
type Number ¶
type Number float64
Number is the jsii type system's number type. It shares the underlying representation of float64 and can be used as Option[Number].
func (Number) FromOption__ ¶
type Option ¶
type Option[T any] interface { // FromOption__ unwraps this Option[T] to the underlying T. Users should never // need to call this method directly, as it mostly serves as a marker // interface for optional-able values. FromOption__() T }
Option is a marker interface for all types that can be used in an optional parameter position. Implementations of FromOption__ typically return their receiver. Most users will never need to implement this interface.
type Slice ¶
type Slice[T any] []T
Slice is the jsii type system's Array/List type. It shares the underlying representation of []T and can be used as Option[Slice[T]].
func (Slice[T]) FromOption__ ¶
type String ¶
type String string
String is the jsii type system's string type. It shares the underlying representation of string and can be used as Option[String].
func (String) FromOption__ ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
api
Package api contains shared type definisions used by several modules part of the jsii runtime for go.
|
Package api contains shared type definisions used by several modules part of the jsii runtime for go. |
embedded
Package embedded contains the embedded @jsii/kernel code, which is used unless the JSII_RUNTIME environment variable is set to a different program.
|
Package embedded contains the embedded @jsii/kernel code, which is used unless the JSII_RUNTIME environment variable is set to a different program. |
kernel
Package kernel defines the interface for go programs to interact with the @jsii/kernel node process.
|
Package kernel defines the interface for go programs to interact with the @jsii/kernel node process. |
objectstore
Package objectstore implements support for tracking a mapping of object references to and from their instance ID.
|
Package objectstore implements support for tracking a mapping of object references to and from their instance ID. |
typeregistry
Package typeregistry offers features useful to manage the registration and operation of types in the context of the jsii runtime.
|
Package typeregistry offers features useful to manage the registration and operation of types in the context of the jsii runtime. |
Package runtime provides the APIs used by code generated by the `jsii-pacmak` tool to interact with the `@jsii/kernel` process.
|
Package runtime provides the APIs used by code generated by the `jsii-pacmak` tool to interact with the `@jsii/kernel` process. |