pairs

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated from Pkl module `Pairs`. DO NOT EDIT.

Code generated from Pkl module `Pairs`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pairs

type Pairs interface {
	GetUntyped() pkl.Pair[any, any]

	GetOptional() *pkl.Pair[any, any]

	GetTyped() pkl.Pair[string, int]

	GetAliased() pkl.Pair[string, any]

	GetTypeArgAliased() pkl.Pair[string, int]
}

func Load

func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (Pairs, error)

Load loads the pkl module at the given source and evaluates it with the given evaluator into a Pairs

func LoadFromPath

func LoadFromPath(ctx context.Context, path string) (ret Pairs, err error)

LoadFromPath loads the pkl module at the given path and evaluates it into a Pairs

type PairsImpl

type PairsImpl struct {
	Untyped pkl.Pair[any, any] `pkl:"untyped"`

	Optional *pkl.Pair[any, any] `pkl:"optional"`

	Typed pkl.Pair[string, int] `pkl:"typed"`

	Aliased pkl.Pair[string, any] `pkl:"aliased"`

	TypeArgAliased pkl.Pair[string, int] `pkl:"typeArgAliased"`
}

func (PairsImpl) GetAliased

func (rcv PairsImpl) GetAliased() pkl.Pair[string, any]

func (PairsImpl) GetOptional

func (rcv PairsImpl) GetOptional() *pkl.Pair[any, any]

func (PairsImpl) GetTypeArgAliased

func (rcv PairsImpl) GetTypeArgAliased() pkl.Pair[string, int]

func (PairsImpl) GetTyped

func (rcv PairsImpl) GetTyped() pkl.Pair[string, int]

func (PairsImpl) GetUntyped

func (rcv PairsImpl) GetUntyped() pkl.Pair[any, any]

Jump to

Keyboard shortcuts

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