tool

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: GPL-2.0 Imports: 9 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 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 LastDay

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

获取一个月的最后一天

func MakeThumbnail

func MakeThumbnail(r io.Reader, width, height uint) ([]byte, error)

生成缩略图

Types

This section is empty.

Directories

Path Synopsis
sms
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
aliyu
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
cl253
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.

Jump to

Keyboard shortcuts

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