bugholder

package
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 Imports: 4 Imported by: 0

Documentation

Overview

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Code generated from Pkl module `org.foo.BugHolder`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A interface {
	GetA() string
}

type B

type B interface {
	A

	GetB() string
}

type BImpl

type BImpl struct {
	B string `pkl:"b"`

	A string `pkl:"a"`
}

func (*BImpl) GetA

func (rcv *BImpl) GetA() string

func (*BImpl) GetB

func (rcv *BImpl) GetB() string

type Being

type Being interface {
	GetIsAlive() bool
}

type Bike

type Bike struct {
	IsFixie bool `pkl:"isFixie"`

	// Wheels are the front and back wheels.
	//
	// There are typically two of them.
	Wheels []*Wheel `pkl:"wheels"`
}

type Bug

type Bug struct {
	// The owner of this bug.
	Owner *Person `pkl:"owner"`

	// The age of this bug
	Age *int `pkl:"age"`

	// How long the bug holds its breath for
	HoldsBreathFor *pkl.Duration `pkl:"holdsBreathFor"`

	Size *pkl.DataSize `pkl:"size"`

	Kind bugkind.BugKind `pkl:"kind"`

	Kind2 bugkindtwo.BugKindTwo `pkl:"kind2"`

	Kind3 string `pkl:"kind3"`

	Kind4 string `pkl:"kind4"`

	BagOfStuff *pkl.Object `pkl:"bagOfStuff"`
}

type BugHolder

type BugHolder struct {
	Bug *Bug `pkl:"bug"`

	N蚊子 *Bug `pkl:"蚊子"`

	ThisPerson ThisPerson `pkl:"thisPerson"`

	D D `pkl:"d"`
}

func Load

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

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

func LoadFromPath

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

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

type C

type C interface {
	B

	GetC() string
}

type CImpl

type CImpl struct {
	*BImpl

	C string `pkl:"c"`
}

func (*CImpl) GetC

func (rcv *CImpl) GetC() string

type D

type D interface {
	C

	GetD() string
}

type DImpl

type DImpl struct {
	*CImpl

	D string `pkl:"d"`
}

func (*DImpl) GetD

func (rcv *DImpl) GetD() string

type Person

type Person interface {
	Being

	GetBike() *Bike

	GetFirstName() *uint16

	GetLastName() map[string]*uint32

	GetThings() map[int]struct{}
}

type PersonImpl

type PersonImpl struct {
	IsAlive bool `pkl:"isAlive"`

	Bike *Bike `pkl:"bike"`

	// The person's first name
	FirstName *uint16 `pkl:"firstName"`

	// The person's last name
	LastName map[string]*uint32 `pkl:"lastName"`

	Things map[int]struct{} `pkl:"things"`
}

A Person!

func (*PersonImpl) GetBike

func (rcv *PersonImpl) GetBike() *Bike

func (*PersonImpl) GetFirstName

func (rcv *PersonImpl) GetFirstName() *uint16

The person's first name

func (*PersonImpl) GetIsAlive

func (rcv *PersonImpl) GetIsAlive() bool

func (*PersonImpl) GetLastName

func (rcv *PersonImpl) GetLastName() map[string]*uint32

The person's last name

func (*PersonImpl) GetThings

func (rcv *PersonImpl) GetThings() map[int]struct{}

type ThisPerson

type ThisPerson interface {
	Person

	GetMyself() ThisPerson

	GetSomeoneElse() Person
}

type ThisPersonImpl

type ThisPersonImpl struct {
	*PersonImpl

	Myself ThisPerson `pkl:"myself"`

	SomeoneElse Person `pkl:"someoneElse"`
}

func (*ThisPersonImpl) GetMyself

func (rcv *ThisPersonImpl) GetMyself() ThisPerson

func (*ThisPersonImpl) GetSomeoneElse

func (rcv *ThisPersonImpl) GetSomeoneElse() Person

type Wheel

type Wheel struct {
	HasSpokes bool `pkl:"hasSpokes"`
}

Directories

Path Synopsis
Code generated from Pkl module `org.foo.BugHolder`.
Code generated from Pkl module `org.foo.BugHolder`.
Code generated from Pkl module `org.foo.BugHolder`.
Code generated from Pkl module `org.foo.BugHolder`.

Jump to

Keyboard shortcuts

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