util

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ 56x.net.
  • name : img.go
  • author : jarryliu
  • date : 2016-08-23 12:53
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : time.go
  • author : jarryliu
  • date : 2015-12-28 03:38
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHansFirstLetter

func GetHansFirstLetter(str string) string

获取汉字首字母

func GetLocation

func GetLocation(ip string) string

func GetStartDate

func GetStartDate(t time.Time) time.Time

获取起始日期

func GetStartEndUnix

func GetStartEndUnix(t time.Time) (int64, int64)

获取一天开始和结束的时间戳

func GetYesterdayStartDate

func GetYesterdayStartDate() time.Time

获取昨天的起始时间

func IntVersion

func IntVersion(s string) int

转换为版本号

func LastDay

func LastDay(year int, m time.Month) int

获取一个月的最后一天

func MakeThumbnail

func MakeThumbnail(filename string, width, height int) ([]byte, error)

生成缩略图

func ResolveMessage

func ResolveMessage(templateContent string, param []string) string

解析模板中的参数

Types

This section is empty.

Directories

Path Synopsis
sms
*
*
aliyu
*
*
cl253
*
*

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址