api

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Star

type Star struct {
	Name string
	Type string
	Mass float64
}

Star represents a celestial object.

func NewStar

func NewStar(name, starType string, mass float64) Star

NewStar creates a new Star.

func (Star) Info

func (s Star) Info()

Info prints information about the Star.

Jump to

Keyboard shortcuts

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