calendar

package
v0.0.0-...-1ee1072 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	Day int
	// contains filtered or unexported fields
}

notice Date is capitalized and visible out side of package notice fields are not capitalized and are not visible outside of package (package scope)

func (*Date) DisplayWorldDate

func (d *Date) DisplayWorldDate()

func (*Date) GetDay

func (d *Date) GetDay() int

func (*Date) Month

func (d *Date) Month() int

func (*Date) SetDay

func (d *Date) SetDay(day int) error

func (*Date) SetMonth

func (d *Date) SetMonth(m int) error

func (*Date) SetYear

func (d *Date) SetYear(y int) error

Methods are capitalized and visible outside of package (universe scope) Setter methods require * to change fields Go convention for naming setter methods is SetFieldname Setter methods can be used to force validation of data

func (*Date) Year

func (d *Date) Year() int

If any methods uses a * then it's idomatic in Go to use * in all that types methods Go convention for naming getter methods is to just use field name, do not use Get

Jump to

Keyboard shortcuts

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