You've already forked monobank-firefly3-bot
Refactor
This commit is contained in:
11
config/helpers.go
Normal file
11
config/helpers.go
Normal file
@ -0,0 +1,11 @@
|
||||
package config
|
||||
|
||||
func (c *Config) GetAccountByMonobankId(q string) ConfigAccount {
|
||||
for _, row := range c.Accounts {
|
||||
if row.MonobankId == q {
|
||||
return row
|
||||
}
|
||||
}
|
||||
|
||||
return ConfigAccount{}
|
||||
}
|
Reference in New Issue
Block a user