Documentation ¶
Index ¶
Constants ¶
View Source
const ( SourceURL = "github://ganboonhong/gotp/migration" StatusFilename = "status.yaml" // enable foreign key by default, https://github.com/mattn/go-sqlite3#connection-string DBOptions = "?_fk=true" Key = "78b8d028113fd29e496d428347f89254" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func NewTestConfig ¶
NewTestConfig uses customized application name (which will be sub directory name) to isolate unit test
func (*Config) DatabasePath ¶
DatabasePath returns absolute path of where sqlite file locates.
func (*Config) Dir ¶
Dir returns application configuration directory. Note that configuration directory is OS-specific. See https://pkg.go.dev/os#UserConfigDir for more information.
Click to show internal directories.
Click to hide internal directories.