Documentation
¶
Index ¶
- type ITicket
- type Vote
- func (v *Vote) Add(voter string, ticket ITicket)
- func (v *Vote) Clear()
- func (v *Vote) IterTicket(function func(ITicket, int))
- func (v *Vote) IterVoter(function func(string, ITicket))
- func (v *Vote) Size() int
- func (v *Vote) String() string
- func (v *Vote) Voter() (int, ITicket)
- func (v *Vote) VoterByTicket(ticket ITicket) int
- func (v *Vote) VoterByVoter(voter string) (int, ITicket)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vote ¶
Vote Defined vote struct
func (*Vote) IterTicket ¶
IterTicket Iter by ticket
func (*Vote) VoterByTicket ¶
VoterByTicket Get num of ticket
Click to show internal directories.
Click to hide internal directories.