diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-01-23 23:31:23 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-01-23 23:31:23 +0100 |
commit | d3c998ed96adb070e5dfe38c5fac812d503c890a (patch) | |
tree | ee003d1a2e339c30e865990c39fa32cff3fb804d /main.go | |
parent | e69d46383fd29378f5d1b3a39f92a2a67a85f1f8 (diff) | |
download | engarde-importer-d3c998ed96adb070e5dfe38c5fac812d503c890a.tar.gz engarde-importer-d3c998ed96adb070e5dfe38c5fac812d503c890a.tar.bz2 engarde-importer-d3c998ed96adb070e5dfe38c5fac812d503c890a.zip |
Enguarde -> Engarde
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -11,8 +11,9 @@ import ( "github.com/jszwec/csvutil" ) -type enguarde interface { - enguarde() (string, error) +//goland:noinspection GoUnusedType +type engarde interface { + engarde() (string, error) } type participant struct { @@ -32,9 +33,9 @@ type club struct { id uint } -func (p participant) enguarde() (string, error) { +func (p participant) engarde() (string, error) { name := strings.ToUpper(p.LastName) - gender, err := p.Gender.enguarde() + gender, err := p.Gender.engarde() if err != nil { return "", err } @@ -46,7 +47,7 @@ func (p participant) enguarde() (string, error) { `, gender, name, p.FirstName, p.id, p.club.id), nil } -func (c club) enguarde() (string, error) { +func (c club) engarde() (string, error) { return fmt.Sprintf(` {[classe club] [nom "%s"] [modifie vrai] [date_oed "332"] [cle %d]}`, c.name, c.id), nil } |