Documentation
¶
Overview ¶
Package manhattan is thin wrapper for formatter related functions.
Index ¶
- Constants
- func DayOfWeek(i int, lcl string) string
- func FormatMoney(money float64) string
- func FormatQuality(ns int64) string
- func FuncName(pkgname, srvname string) string
- func InterfaceToFloat64(wtf interface{}) float64
- func InterfaceToInteger(wtf interface{}) int
- func InterfaceToString(wtf interface{}) string
- func Month(i int, lcl string) string
- func PlatformRequestID(s string) string
- func ServerName(args ...interface{}) string
Constants ¶
View Source
const ( Signature = "💥" FmtRotorMessage = "Retry attempt %d. Status: %+v Error: %+v Request: %+v 💥" FmtResponseMessage = "%s Resp: %+v Code: %d 💥" ServerLowerCase = "lcase" ServerUpperCase = "ucase" ServerEmoji = "emoji" ServerSpace = "space" )
constants
Variables ¶
This section is empty.
Functions ¶
func FormatMoney ¶
FormatMoney wil format float64 to formatted string
func FormatQuality ¶
FormatQuality based on http://www.nngroup.com/books/usability-engineering/
func InterfaceToFloat64 ¶
func InterfaceToFloat64(wtf interface{}) float64
InterfaceToFloat64 Check interface 😱
func InterfaceToInteger ¶
func InterfaceToInteger(wtf interface{}) int
InterfaceToInteger Check interface 😱
func InterfaceToString ¶
func InterfaceToString(wtf interface{}) string
InterfaceToString Check interface 😱
func PlatformRequestID ¶
PlatformRequestID is well platform request id
func ServerName ¶
func ServerName(args ...interface{}) string
ServerName will generate random server name Feel free to change it or add your favorite band, singer, city or emoticon to the list 😎 args[0] will be a map[string] bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.