Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB MB GB TB // Terra 1 << 32 PB // Peta EB // Exa Byte Google has 15 Exabyte of data ZB // Zetta Byte 1 << 64 YB // Yotta Byte BB // Bronto byte - https://whatsabyte.com/ GO // Geop byte )
Declare KB, Kilobyte, Megabyte, Giga, Tera, Peta, Untyped constants have 256 bit precision
Variables ¶
This section is empty.
Functions ¶
func Basename ¶
Basename removes directory components and a .suffix
e.g.: a => a, a.go => a, a/b/c.go => c, a/b/c.d.go =? cd.
func IntsToString ¶
IntsToString Converts []Int{1, 2, 3, 4} => "[1, 2, 3, 4]"
Note that numbers in golang are all utf-8
Types ¶
type DayOfWeek ¶
type DayOfWeek int8
DayOfWeek Declare days of week
type DayOfWeekName ¶
DayOfWeekName supports these methods
type MonthOfYear ¶
type MonthOfYear int8
MonthOfYear assign a number to a month, Jan = 0
const ( Jan MonthOfYear = iota // Jan month 0 Feb // Feb month 1 Mar // Mar month 2 Apr // Apr month 4 May // May month 5 Jun // Jun month 6 July // July month 7 Aug // Aug month 8 Sep // Sep month 9 Oct // Oct month 10 Nov // Nov month 11 Dec // Dec merry Christmas )
func (MonthOfYear) MonthName ¶
func (m MonthOfYear) MonthName() string
MonthName tells name of the month corresponding to a month number
type MonthOfYearName ¶
type MonthOfYearName interface {
MonthName() string
}
MonthOfYearName supports name of month
Click to show internal directories.
Click to hide internal directories.