animal

package
v0.0.0-...-7656c7d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimalType

type AnimalType string
const (
	Bear    AnimalType = "bear"
	Tiger   AnimalType = "tiger"
	Lion    AnimalType = "lion"
	Unknown AnimalType = "unknown"
)

type DataAnimal

type DataAnimal[T float64 | float32] struct {
	AnimalType  AnimalType
	Pulse       int
	Temperature float64
	Breaths     []T
	Sounds      []T
}

func New

func New[T float64 | float32](pulse int, temperature float64, animalType AnimalType) DataAnimal[T]

func (*DataAnimal[T]) RecordBreathing

func (a *DataAnimal[T]) RecordBreathing(breathingData T)

func (*DataAnimal[T]) RecordSound

func (a *DataAnimal[T]) RecordSound(soundData T)

func (*DataAnimal[T]) Typify

func (a *DataAnimal[T]) Typify() AnimalType

Jump to

Keyboard shortcuts

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