Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cfg = Config{ BotToken: "xxx", AuthorizedUserIDs: []int64{}, Repo: "https://git.xxx.com/xxx/xxx.git", Username: "someone", Password: "password", CommitAuthor: "Beanbot", CommitAuthorEmail: "beanbot@example.com", Syntax: syntax.Config{ Currencies: []string{"CNY", "USD"}, Accounts: map[string]string{"zfb": "Assets::Digital::Alipay"}, DefaultCurrency: "CNY", }, TxnBeanPathPattern: "txs/{{.YYYY}}-{{.MM}}.bean", }
View Source
var TxnBeanPathTmpl *template.Template
Functions ¶
Types ¶
type Config ¶
type Config struct { BotToken string `yaml:"botToken"` AuthorizedUserIDs []int64 `yaml:"authorizedUserIDs"` Repo string `yaml:"repo"` Username string `yaml:"username"` Password string `yaml:"password"` CommitAuthor string `yaml:"commitAuthor"` CommitAuthorEmail string `yaml:"commitAuthorEmail"` Syntax syntax.Config `yaml:"syntax"` TxnBeanPathPattern string `yaml:"txnBeanPathPattern"` }
Click to show internal directories.
Click to hide internal directories.