💄 Better titles; go fmt
This commit is contained in:
parent
b8de119cc6
commit
8f3a5b35c8
4 changed files with 12 additions and 8 deletions
|
|
@ -129,7 +129,7 @@ func (v Voting) Electors() []string {
|
|||
}
|
||||
|
||||
func (v Voting) Anonymous() bool {
|
||||
return v.annonymous
|
||||
return v.annonymous
|
||||
}
|
||||
|
||||
func (v Voting) IsOpen() bool {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
type Vote struct {
|
||||
Id string
|
||||
Id string
|
||||
Elector string
|
||||
Choice Choice
|
||||
timestamp time.Time
|
||||
|
|
@ -14,7 +14,7 @@ type Vote struct {
|
|||
|
||||
func NewVote(id, elector string, choice Choice) Vote {
|
||||
return Vote{
|
||||
Id: id,
|
||||
Id: id,
|
||||
Elector: elector,
|
||||
Choice: choice,
|
||||
timestamp: time.Now().UTC(),
|
||||
|
|
@ -23,7 +23,7 @@ func NewVote(id, elector string, choice Choice) Vote {
|
|||
|
||||
func NewVoteWithTimestamp(id, elector string, choice Choice, timestamp time.Time) Vote {
|
||||
return Vote{
|
||||
Id: id,
|
||||
Id: id,
|
||||
Elector: elector,
|
||||
Choice: choice,
|
||||
timestamp: timestamp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue