gofio

http server for overview for accounts from FIO bank
git clone git://gtms.dev/gofio.git
Log | Files | Refs

commit a8c7862b8519477269a6c3d0b5b39121bd4ce3d8
parent aa7e860b2e8bff27d2730e39c347a826dc25b5b6
Author: Tomas Nemec <nemi@skaut.cz>
Date:   Sun,  1 Aug 2021 15:23:39 +0200

refactor

Diffstat:
Mmain.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.go b/main.go @@ -45,7 +45,8 @@ func main() { // accounts for _, token := range tokens { - accounts = append(accounts, &account{name: token.name, config: token.config, fio: &fio.Fio{Base_url: base_url, Token: token.token}}) + fio := fio.Fio{Base_url: base_url, Token: token.token} + accounts = append(accounts, &account{name: token.name, config: token.config, fio: &fio}) } http.HandleFunc("/", serveDashboard())