tournaments/tournaments.go
func validateTournamentInfo(info Info) error {
	if info.Scheduled.IsZero() {
		return errors.New("Tournament needs scheduled date")
	}
	if info.Stake == 0 {
		return errors.New("Tournament needs a stake")
	}
	if info.Season == 0 {
		return errors.New("Tournament needs a season")
	}
	return nil
}
func validateTournamentInfo(info Info) error {
	if info.Scheduled.IsZero() {
		return errors.New("Tournament needs scheduled date")
	}
	if info.Stake == 0 {
		return errors.New("Tournament needs a stake")
	}
	if info.Season == 0 {
		return errors.New("Tournament needs a season")
	}
	return nil
}
func validateTournamentInfo ( info Info ) error { if info . Scheduled . IsZero ( ) { return errors . New ( " " ) } if info . Stake == 0 { return errors . New ( " " ) } if info . Season == 0 { return errors . New ( " " ) } return nil }
//
// Tournament related functions and methods
//
// Helpers
Tournament related functions and methods Helpers