birthday

package
v0.0.0-...-f425ee8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Birthday

type Birthday struct {
	Name        string
	DateOfBirth int
}

Birthday = VO

func (Birthday) GetAge

func (b Birthday) GetAge() int

GetAge returns the Age from given year of birth.

func (Birthday) GetBirth

func (b Birthday) GetBirth() string

GetBirth returns the birth as form "00월 00일".

type Repository

type Repository interface {
	Find(key string) (*Birthday, error)
	FindAll() ([]*Birthday, error)
	Store(key *Birthday) error
	Clean() error
}

Repository declares the methods that repository provides.

Jump to

Keyboard shortcuts

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