Documentation ¶
Index ¶
- func BoolP(v bool) *bool
- func Boot2DocketIp() (string, error)
- func GetGravatar(id string, size int, dtype AvatarType) string
- func GetHostname() (string, error)
- func IsBoot2Docker() bool
- func IsCanceled(err error) bool
- func JustTimeout(parent context.Context, duration time.Duration) context.Context
- func NotifyInterrupt() <-chan os.Signal
- func RandomColor() [3]byte
- func RandomColorString() string
- func RandomString(n int) string
- func StringP(s string) *string
- func UuidV4String() string
- type AvatarType
- type MultiLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Boot2DocketIp ¶
func GetGravatar ¶
func GetGravatar(id string, size int, dtype AvatarType) string
Generate gravatar url Read more about gravatar: http://en.gravatar.com/site/implement/images/
func GetHostname ¶
func IsBoot2Docker ¶
func IsBoot2Docker() bool
func IsCanceled ¶
func NotifyInterrupt ¶
func RandomColor ¶
func RandomColor() [3]byte
func RandomColorString ¶
func RandomColorString() string
func RandomString ¶
func UuidV4String ¶
func UuidV4String() string
Types ¶
type AvatarType ¶
type AvatarType string
const ( // a simple, cartoon-style silhouetted outline of a person (does not vary by email hash) AvatarMysteryMan AvatarType = "mm" // a geometric pattern based on an email hash AvatarIdenticon AvatarType = "identicon" // a generated 'monster' with different colors, faces, etc AvatarMonster AvatarType = "monsterid" // generated faces with differing features and backgrounds AvatarWavatar AvatarType = "wavatar" // awesome generated, 8-bit arcade-style pixelated faces AvatarRetro AvatarType = "retro" // do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response Avatar404 AvatarType = "404" // a transparent PNG image (border added to HTML below for demonstration purposes) Avatar AvatarType = "blank" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.