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
Click to show internal directories.
Click to hide internal directories.