single

package
v0.0.0-...-5811b38 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 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 Car

type Car struct {
	// contains filtered or unexported fields
}

Car - hiding internals because all var names start with lower case

func NewCar

func NewCar(name, color string, maxSpeed int) *Car

NewCar - kind of 'constructor' for car

func (*Car) Accelerate

func (c *Car) Accelerate(increment int)

Accelerate - may be positive or negative

func (*Car) String

func (c *Car) String() string

String - Formatterof Car for fmt

func (*Car) TurnOff

func (c *Car) TurnOff()

TurnOff -

func (*Car) TurnOn

func (c *Car) TurnOn()

TurnOn -

Jump to

Keyboard shortcuts

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