Documentation ¶
Index ¶
- func ByteTransformation(data int64, method string) float64
- func DirCreate(path string) (bool, error)
- func EnumerateDate() (year, month, day string)
- func FileMove(source, target string) error
- func FileRemove(path string) error
- func GetFileSuffix(tempname string) string
- func Int64ToString(timeStamp int64) string
- func IntToString(timeStamp int) string
- func StringToInt(data string) int
- func StringToInt64(data string) int64
- func StringToMd5(str string, length int64) string
- func TimeToString(accurate bool) string
- func UnixTimeToString(stamp string) string
- type Cos
- type Entity
- type EntityFactory
- type Oss
- type Paging
- type Qiniu
- type ResponseError
- type Upyun
- type UpyunList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cos ¶
type Cos struct { Bucket string //Bucket Appid string //APPID Region string //Region Skid string //SecretID Sk string //SecretKey }
腾讯云
type EntityFactory ¶
type EntityFactory struct { }
实体工厂
func (*EntityFactory) Create ¶
func (this *EntityFactory) Create(flag string, entity interface{}) Entity
工厂制造实体
type Oss ¶
type Oss struct { Bucket string //Bucket Ak string //Accesskey Sk string //Secretkey Endpoint string //地域节点 }
阿里云
type Paging ¶
type Paging struct { Page int64 //当前页面 PageSize int64 //每页条数 Total int64 //文章总条数 PageCount int64 //分页后总页数 }
func CreatePaging ¶
type Qiniu ¶
Click to show internal directories.
Click to hide internal directories.