earth

package
v0.0.0-...-7210f20 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated from Pkl module `flyinprogrammer.pkl_go_bananas.Earth`. DO NOT EDIT.

Code generated from Pkl module `flyinprogrammer.pkl_go_bananas.Earth`. DO NOT EDIT.

Code generated from Pkl module `flyinprogrammer.pkl_go_bananas.Earth`. DO NOT EDIT.

Code generated from Pkl module `flyinprogrammer.pkl_go_bananas.Earth`. DO NOT EDIT.

Code generated from Pkl module `flyinprogrammer.pkl_go_bananas.Earth`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Being

type Being interface {
	GetIsAlive() bool
}

type Bug

type Bug struct {
	// The name of this bug.
	Name string `pkl:"name"`

	// The owner of this bug.
	Owner *Person `pkl:"owner"`
}

type Earth

type Earth struct {
}

func Load

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

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

func LoadFromPath

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

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

type Person

type Person interface {
	Being

	GetFirstName() string

	GetLastName() string
}

type PersonImpl

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

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

	// The person's last name
	LastName string `pkl:"lastName"`
}

A Person!

func (*PersonImpl) GetFirstName

func (rcv *PersonImpl) GetFirstName() string

The person's first name

func (*PersonImpl) GetIsAlive

func (rcv *PersonImpl) GetIsAlive() bool

func (*PersonImpl) GetLastName

func (rcv *PersonImpl) GetLastName() string

The person's last name

Jump to

Keyboard shortcuts

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