model

package
v0.0.0-...-b5c5f9a Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyBet = BetCombo{
	Balls: []int{7, 14, 22, 28, 42},
	Bonus: 5,
}

Functions

This section is empty.

Types

type BetCombo

type BetCombo struct {
	Balls []int
	Bonus int
}

func (*BetCombo) String

func (b *BetCombo) String() string

type LotteryResult

type LotteryResult struct {
	Date             string
	Balls            []int
	LuckyBall        int
	WinnerNumber     int
	WinnerPrize      int
	NextLotteryDate  string
	NextLotteryPrize int
}

func (*LotteryResult) GetCurrentWinnerString

func (l *LotteryResult) GetCurrentWinnerString() string

func (*LotteryResult) IsWinning

func (l *LotteryResult) IsWinning(bet BetCombo) bool

func (*LotteryResult) String

func (l *LotteryResult) String(bet BetCombo) string

Jump to

Keyboard shortcuts

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