Documentation
¶
Index ¶
- Constants
- func ArchiveLog(p string, f string) error
- func CreateLogFile(f string) error
- func LogExists(f string) bool
- func LogNotExists(f string) bool
- func ReadJsonLog(path string) ([]byte, error)
- func ReadLog(p string, f string) (string, error)
- func UpdateActivity(path string, file string, t string, i int) error
- func WorkLogPath(p string, f string) string
- func WriteJsonLog(path string, currentLog []byte) error
- func WriteToWorkLog(path string, t string, s string) error
- type Activity
- type Log
Constants ¶
View Source
const (
DefaultHeader = "type, date, activity"
)
Variables ¶
This section is empty.
Functions ¶
func ArchiveLog ¶
func CreateLogFile ¶
func LogNotExists ¶
func ReadJsonLog ¶
func WorkLogPath ¶
func WriteJsonLog ¶
Types ¶
type Activity ¶
type Activity struct {
Type string `json:"type"`
Date string `json:"date"`
Activity string `json:"activity"`
}
func NewActivity ¶
func NewActivity() *Activity
func (Activity) ToCSVEntry ¶
Click to show internal directories.
Click to hide internal directories.