wind

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceColor

func ForceColor(force int) string

Types

type Degree

type Degree float64
const (
	N Degree = iota * Degree(360) / 32
	NbE
	NNE
	NEbN
	NE
	NEbE
	ENE
	EbN
	E
	EbS
	ESE
	SEbE
	SE
	SEbS
	SSE
	SbE
	S
	SbW
	SSW
	SWbS
	SW
	SWbW
	WSW
	WbS
	W
	WbN
	WNW
	NWbW
	NW
	NWbN
	NNW
	NbW
)

func (Degree) Degree

func (f Degree) Degree() Degree

func (Degree) Direction

func (f Degree) Direction() Direction

func (Degree) HTML

func (f Degree) HTML() html.HTML

func (Degree) String

func (f Degree) String() string

type Direction

type Direction string

func (Direction) Degree

func (s Direction) Degree() Degree

func (Direction) Direction

func (s Direction) Direction() Direction

func (Direction) HTML

func (s Direction) HTML() html.HTML

func (Direction) String

func (s Direction) String() string

type KPH

type KPH float64

func (KPH) Force

func (f KPH) Force() int

func (KPH) ForceColor

func (f KPH) ForceColor() string

func (KPH) HTML

func (f KPH) HTML() html.HTML

func (KPH) MPS

func (f KPH) MPS() float64

func (KPH) MarshalJSON

func (f KPH) MarshalJSON() ([]byte, error)

func (KPH) String

func (f KPH) String() string

type Speed

type Speed interface {
	MPS() float64
	Force() int
	ForceColor() string
	String() string
	MarshalJSON() ([]byte, error)
	HTML() html.HTML
}

Jump to

Keyboard shortcuts

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