Documentation
¶
Index ¶
- Variables
- func ExtractTagsFromText(text string) []string
- func HashString(s string) string
- func Init()
- func InitLogger()
- func MkFile(path string, data []byte) error
- func PurgeFile(path string) error
- func RemoveEmptyDirectories(dirPath string) error
- func RmFileAfter(path string, td time.Duration)
- type CommonCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string = "dev" BuildTime string = "unknown" GitCommit string = "unknown" )
View Source
var Log *slog.Logger
View Source
var TagRe = regexp.MustCompile(`(?:^|[\p{Zs}\s.,!?(){}[\]<>\"\',。!?():;、])#([\p{L}\d_]+)`)
Functions ¶
func ExtractTagsFromText ¶ added in v0.17.0
func HashString ¶ added in v0.11.0
func InitLogger ¶ added in v0.17.0
func InitLogger()
func RmFileAfter ¶ added in v0.3.2
Types ¶
type CommonCache ¶ added in v0.4.0
type CommonCache struct {
// contains filtered or unexported fields
}
var Cache *CommonCache
func (*CommonCache) Delete ¶ added in v0.4.0
func (c *CommonCache) Delete(key string) error
Click to show internal directories.
Click to hide internal directories.