💄 Better titles; go fmt

This commit is contained in:
Brian Wiborg 2024-05-13 13:20:26 +02:00
parent b8de119cc6
commit 8f3a5b35c8
No known key found for this signature in database
GPG key ID: BE53FA9286B719D6
4 changed files with 12 additions and 8 deletions

View file

@ -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 {

View file

@ -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,