Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identifier ¶
type Identifier struct {
// contains filtered or unexported fields
}
func (*Identifier) ID ¶
func (id *Identifier) ID() string
func (*Identifier) MarshalJSON ¶
func (id *Identifier) MarshalJSON() ([]byte, error)
func (*Identifier) UnmarshalJSON ¶
func (id *Identifier) UnmarshalJSON(raw []byte) error
type Meeting ¶
type Meeting struct { Identifier Date time.Time Topic string Pizzeria Pizzeria Solver Solver Attendees []Attendee }
func (*Meeting) MarshalJSON ¶
func (*Meeting) UnmarshalJSON ¶
type PPPSolver ¶
type PPPSolver struct { PizzasPerPerson float64 CombinatorMaker combinator.CombinatorMaker // contains filtered or unexported fields }
func (PPPSolver) Use ¶
func (ps PPPSolver) Use(maker combinator.CombinatorMaker)
type Person ¶
type Person struct { Id Identifier `json:"-"` Name string // contains filtered or unexported fields }
type PizzeriaFunc ¶
type PizzeriaFunc func() []Pizza
func (PizzeriaFunc) Menu ¶
func (pf PizzeriaFunc) Menu() []Pizza
type Solver ¶
type Solver interface { Solve(attendees []Attendee, menu []Pizza) Solution Use(maker combinator.CombinatorMaker) }
Click to show internal directories.
Click to hide internal directories.