Documentation
¶
Index ¶
- Constants
- func Btoi(b bool) int
- func GetLimitSecond(sleep string, ctx context.Context) (time.Duration, context.Context, error)
- func In[T comparable](array []T, element T) bool
- func Itob(i int) bool
- func MakeFilename(beatmapsetId int, artist, name string) string
- func MustParseTime(date string, format string) time.Time
- func ParseFilename(filename string) (artist, name string, beatmapsetId int)
- func Reverse(s string) string
- func SanitizeFileName(fileName string) string
- func SplitSlice[T any](s []T, n int) [][]T
- func XDGDataHome(app string) string
- func XDGHome() string
Constants ¶
View Source
const OsuFilenameRegex = `^(?P<beatmapsetId>\d+)\s+(?P<artist>[\x00-\xff]+)\s+-\s+(?P<name>.+)\.osz$`
Variables ¶
This section is empty.
Functions ¶
func GetLimitSecond ¶
func In ¶
func In[T comparable](array []T, element T) bool
func MakeFilename ¶
func ParseFilename ¶
func SanitizeFileName ¶
func SplitSlice ¶
func XDGDataHome ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.