Documentation ¶
Index ¶
- func CountryCode2EmojiAndName(code string) string
- func DownloadIfNotExist(remoteUrl, localPath string) error
- func FileExist(path string) bool
- func FormatNullableTime(t sql.NullTime) string
- func FormatTime(t time.Time) string
- func HttpDownload(remoteUrl, localPath string, timeout time.Duration) error
- func IsSqliteDuplicateError(err error) bool
- func LoadJson[T any](filename string) (T, error)
- func PageHelper(page, pageSize int) (limit, offset int)
- func PageNormalize(page, pageSize int) (int, int)
- func RandString(num int) string
- func TotalPage(totalRows, pageSize int) int
- type UserAgentData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadIfNotExist ¶
func FormatNullableTime ¶
func FormatTime ¶
func IsSqliteDuplicateError ¶
func PageHelper ¶
func PageNormalize ¶
func RandString ¶
Types ¶
type UserAgentData ¶
func ParseUserAgent ¶
func ParseUserAgent(s string) UserAgentData
Click to show internal directories.
Click to hide internal directories.