sample

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeathStarConfigFromFile

func GetDeathStarConfigFromFile()

func GetDeathStarConfigWithEnvs

func GetDeathStarConfigWithEnvs()

func GetPlanetParams

func GetPlanetParams()

func GetPlanetParamsWithoutRequired

func GetPlanetParamsWithoutRequired()

func Getter

func Getter()

Types

type Coordinate

type Coordinate struct {
	Latitude  float64
	Longitude float64
	Altitude  float64
}

type DeathStarConfig

type DeathStarConfig struct {
	TargetPlanet  PlanetParams
	CommanderName string     `env:"COMMANDER_NAME"`
	ShootPosition Coordinate `env:"SHOOT_POSITION"`
}

type PlanetParams

type PlanetParams struct {
	Name string `env:"PLANET_NAME,required"`
	Suns int    `env:"PLANET_SUNS"`
}

Jump to

Keyboard shortcuts

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