format

package
v0.0.0-...-1960156 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2014-02-11 20:57
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : category
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2014 @ z3q.net.
  • name :
  • author : jarryliu
  • date : 2014-02-11 21:15
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : time
  • author : jarryliu
  • date : 2015-11-07 22:52
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CartDetails

func CartDetails(c *dto.ShoppingCart) string

购物车详情

func FormatFloat

func FormatFloat(f float32) string

func FormatGoodsNo

func FormatGoodsNo(d int) string

todo: not used 格式化商品编号,不足位用0补齐

func GetCategoryIdStr

func GetCategoryIdStr(ids []int) string

获取栏目编号字符串

func GetGoodsImageUrl

func GetGoodsImageUrl(image string) string

获取商品图片地址

func HanDateTime

func HanDateTime(t time.Time) string

func HanUnixDateTime

func HanUnixDateTime(unix int64) string

func RoundAmount

func RoundAmount(amount float32) float32

func ToDiscountStr

func ToDiscountStr(discount int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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