Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DateFormat is the default format for date in config file. DateFormat = time.RFC3339 )
Variables ¶
This section is empty.
Functions ¶
func InternalFilePath ¶ added in v1.30.3
InternalFilePath returns the path for the wakatime internal config file.
func ReadInConfig ¶ added in v1.30.3
ReadInConfig reads wakatime config file in memory.
func WakaHomeDir ¶ added in v1.30.3
WakaHomeDir returns the current user's home directory.
Types ¶
type WriterConfig ¶ added in v1.30.3
type WriterConfig struct { File *ini.File ConfigFilepath string }
WriterConfig stores the configuration necessary to write to config file.
func NewIniWriter ¶ added in v1.30.3
func NewIniWriter(v *viper.Viper, filepathFn func(v *viper.Viper) (string, error)) (*WriterConfig, error)
NewIniWriter creates a new IniWriter instance.
Click to show internal directories.
Click to hide internal directories.