Documentation ¶
Index ¶
- Constants
- func AllowedSuggestionTypes() []string
- func ArrayContains(s []string, e string) bool
- func ArrayContainsC(s []string, e string, caseSensitive bool) bool
- func ArraysEqual(a, b []string) bool
- func Env(k string) string
- func EnvOrFb(k string, fb string) string
- func FqCacheKey(key string) string
- func LogLocalf(level Level, m *tb.Message, format string, v ...interface{}) (prefix, message string)
- func LogMessagePrefix(m *tb.Message) string
- func SplitQuotedCommand(s string) (res []string)
- func Template(tmpl string, values map[string]interface{}) (string, error)
- func TestExpect(t *testing.T, e1 interface{}, e2 interface{}, msg string)
- func TestExpectArrEq(t *testing.T, e1, e2 []string, msg string)
- func TestStringContains(t *testing.T, s, substring, msg string)
- func TypeCacheKey(key string) string
- type Level
- type SubcommandHandler
- type TV
Constants ¶
View Source
const ( FIELD_DATE = "date" FIELD_DESCRIPTION = "description" FIELD_AMOUNT = "amount" FIELD_ACCOUNT = "account" FIELD_TAG = "tag" FIELD_ACCOUNT_FROM = "from" FIELD_ACCOUNT_TO = "to" DOT_INDENT = 47 BEANCOUNT_DATE_FORMAT = "2006-01-02" USERSET_CUR = "user.currency" USERSET_ADM = "user.isAdmin" USERSET_TAG = "user.vacationTag" USERSET_TZOFF = "user.tzOffset" DEFAULT_CURRENCY = "EUR" TG_MAX_MSG_CHAR_LEN = 4096 )
View Source
const ( TRACE = Level(iota) DEBUG INFO WARN ERROR FATAL )
Variables ¶
This section is empty.
Functions ¶
func AllowedSuggestionTypes ¶
func AllowedSuggestionTypes() []string
func ArrayContains ¶
func ArraysEqual ¶
func FqCacheKey ¶ added in v0.21.0
func LogMessagePrefix ¶
func SplitQuotedCommand ¶
func TestExpect ¶
func TestStringContains ¶
func TypeCacheKey ¶ added in v0.21.0
Types ¶
type SubcommandHandler ¶
type SubcommandHandler struct {
// contains filtered or unexported fields
}
func MakeSubcommandHandler ¶
func MakeSubcommandHandler(base string, quotedSingleParams bool) *SubcommandHandler
func (*SubcommandHandler) Add ¶
func (sh *SubcommandHandler) Add(command string, handler handlerFunc) *SubcommandHandler
Click to show internal directories.
Click to hide internal directories.