manhattan

package module
v0.0.0-...-446cebd Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 5 Imported by: 0

README

Dr Manhattan

Formatter package

Install

`go get -u -v github.com/kakilangit/manhattan`

Dependencies

  • go get -u -v github.com/kakilangit/randomizer
  • go get -u -v github.com/stretchr/testify

Documentation

Overview

Package manhattan is thin wrapper for formatter related functions.

Index

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 DayOfWeek

func DayOfWeek(i int, lcl string) string

DayOfWeek will return day of week name based on locale

func FormatMoney

func FormatMoney(money float64) string

FormatMoney wil format float64 to formatted string

func FormatQuality

func FormatQuality(ns int64) string

FormatQuality based on http://www.nngroup.com/books/usability-engineering/

func FuncName

func FuncName(pkgname, srvname string) string

FuncName will generate pkgname srvname as funcname

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 Month

func Month(i int, lcl string) string

Month will return long month name based on locale

func PlatformRequestID

func PlatformRequestID(s string) string

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.

Jump to

Keyboard shortcuts

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