Documentation ¶
Index ¶
- Constants
- func AddDuration(t time.Time, add time.Duration) time.Time
- func AppendToFile(file string, text []string) int
- func Benchmark(s time.Time) (string, time.Duration)
- func Bts(b []byte) string
- func BtsSingle(b byte) string
- func Check(e error, msg string)
- func CheckError(e bool, msg string)
- func Day() string
- func Dts(d time.Duration) string
- func Echo(msg ...interface{})
- func EchoBreak(msg ...interface{})
- func EmptyString(s string) bool
- func F32ti(f float32) int
- func F32ti64(f float32) int64
- func F32to64(f float32) float64
- func F32ts(f float32) string
- func F64ti(f float64) int
- func F64ti64(f float64) int64
- func F64to32(f float64) float32
- func F64ts(f float64) string
- func FileExists(file string) bool
- func GetArch() string
- func GetCustomTime(expr string) string
- func GetNow(databaseFormat bool) string
- func GetNumThreads() int
- func GetOS() string
- func GetRoot() string
- func GetToday(databaseFormat bool) string
- func GetType(msg interface{}) string
- func HasError() (bool, string)
- func Hour() string
- func I64td(n int64) float64
- func I64tf(n int64) float32
- func IntToBin(n int64) string
- func IntToHex(n int64) string
- func IntToOct(n int64) string
- func IsInt(s string) bool
- func Itd(n int) float64
- func Itf(n int) float32
- func Its(n int) string
- func Its16(n int16) string
- func Its32(n int32) string
- func Its64(n int64) string
- func Its8(n int8) string
- func LoadPerThread(work int) int
- func LogPath(path string) string
- func Lower(s string) string
- func Md5(s string) string
- func Minute() string
- func Money32(value float32, symbol bool) string
- func Money64(money float64, symbol bool) string
- func MonthNum() string
- func MonthPtBR() string
- func Nanosecond() string
- func New()
- func Now() time.Time
- func NowString() string
- func NowTimestamp() int64
- func NowUTC() time.Time
- func OnlyAlphaNumeric(text string) string
- func OnlyNumber(text string) string
- func OnlyString(text string) string
- func OnlyStringAndSpace(text string) string
- func Panic(e error)
- func Print(msg ...interface{})
- func PrintType(t ...interface{})
- func ReadFile(path string) []byte
- func ReadFilesInDir(path string) []string
- func Regex(text string, expr string, replace string) string
- func Round32(value float32) float32
- func Round64(value float64) float64
- func RoundCeil32(value float32) float32
- func RoundCeil64(value float64) float64
- func RoundFloor32(value float32) float32
- func RoundFloor64(value float64) float64
- func Second() string
- func SeparateFileByLine(file []byte) ([]string, int)
- func SetNumThreads(num int) int
- func Sha1(s string) string
- func Sha256(s string) string
- func ShortMonthPtBR() string
- func StartErrorCheck()
- func StayCalm(e error) bool
- func Stb(s string) []byte
- func Stf64(s string) float64
- func Sti(s string) int
- func Sti16(s string) int16
- func Sti32(s string) int
- func Sti64(s string) int64
- func Sti8(s string) int8
- func Stui(s string) uint
- func Stui16(s string) uint16
- func Stui32(s string) uint
- func Stui64(s string) uint64
- func Stui8(s string) uint8
- func ThreadPagination(work int, threadID int) (int, int)
- func Title(s string) string
- func ToString(v interface{}) string
- func Tts(t time.Time) string
- func Uitd(n uint) float64
- func Uitf(n uint) float32
- func Uits(n uint) string
- func Uits16(n uint16) string
- func Uits32(n uint32) string
- func Uits64(n uint64) string
- func Uits8(n uint8) string
- func Upper(s string) string
- func Wait(t time.Duration)
- func WriteBytesToFile(file string, text []byte)
- func WriteToFile(file string, text string)
- func Year() string
- type FileInfo
Constants ¶
View Source
const SYMBOL = "R$"
Variables ¶
This section is empty.
Functions ¶
func AddDuration ¶
AddDuration: Alias to time.Add()
func AppendToFile ¶
func Benchmark ¶
Benchmark: Basically an alis to time.Since, printing the result; also return the result as a string and time.Duration
func CheckError ¶
CheckError: If error is true will save the message
func EchoBreak ¶
func EchoBreak(msg ...interface{})
Echo: Alias to fmt.Print, breaks new line in the end
func FileExists ¶
func GetCustomTime ¶
GetCustomTime: User string expr to get datetime Y: year; M: month (numeric); L: month (written long); A: month (written short); D: day; H: hour; I: minute; S: second; N: Nanosecond;
func GetNow ¶
GetNow: Current full date with time; database ? YYYY-MM-DD HH:II:SS : DD/MM/YYYY HH:II:SS
func GetNumThreads ¶
func GetNumThreads() int
func LoadPerThread ¶
func OnlyAlphaNumeric ¶
func OnlyNumber ¶
func OnlyString ¶
func OnlyStringAndSpace ¶
func ReadFilesInDir ¶
func RoundCeil32 ¶
func RoundCeil64 ¶
func RoundFloor32 ¶
func RoundFloor64 ¶
func SeparateFileByLine ¶
func SetNumThreads ¶
func ShortMonthPtBR ¶
func ShortMonthPtBR() string
ShortMonthPtBR: Current month in pr-BR (written short)
func WriteBytesToFile ¶
func WriteToFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.