Documentation ¶
Index ¶
- func CalculateNextStep(lastTime, currentTime time.Time, step, minStep int64) int64
- func ConvertFromBase62(str string) int64
- func ConvertToBase62(num int64) string
- func ExtractGoPath(str string) string
- func GenerateIDs(start, end int64, skipList []int64) []int64
- func IsValidBase62String(str string) bool
- func IsValidURL(str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateNextStep ¶
CalculateNextStep calculates the next step based on the lastTime, currentTime, step, and minStep. It returns the calculated next step value.
func ConvertFromBase62 ¶
func ConvertToBase62 ¶
ConvertToBase62 converts a given number to its base 62 representation.
func ExtractGoPath ¶
ExtractGoPath extracts the Go path from the given string. It takes a string parameter and returns a string.
func GenerateIDs ¶
GenerateIDs generates a list of IDs between start and end, excluding those in the skipList.
func IsValidBase62String ¶
func IsValidURL ¶
IsValidURL checks if a string is a valid http(s) address. Returns true if the string is a valid URL, otherwise false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.