Documentation
¶
Index ¶
- Variables
- func CacheDelete(ctx context.Context, key string) error
- func CacheGet[T any](ctx context.Context, key string) (T, error)
- func CacheSet(ctx context.Context, key string, value any) error
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string = "dev" BuildTime string = "unknown" GitCommit string = "unknown" )
View Source
var Cache *cache.Cache[any]
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.