easygolang

package module
v0.0.0-...-cb21479 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 38 Imported by: 10

README

About this

Just a golang framework for me

Somewhere this code is very stupid =)

Code is under development ...

Packages

main package

  • lib_files_recursively.go - my code for file size, copy, move, delete operations with atomic counters
  • lib_files.go - read, write, create, list files in folders, get file's information
  • lib_image.go - functions for default image package
  • lib_lang.go - multi-language support
  • lib_log.go - my small log tool
  • lib_math.go - conversion between numbers and strings, random, checksums
  • lib_network.go - network tools, escape and unescape html and url args
  • lib_os_pc.go - information about pc, os, user
  • lib_resource.go - for insertion of small images into executable file
  • lib_strings.go - string opertions where one char have single length
  • lib_system.go - input and output, run args, garbage collection, run apps
  • lib_threads.go - threads synchronize structs and functions
  • lib_time.go - "time" wrapper
  • lib_options.go - my code for app's options storage in file

subpackages

  • easygtk - some functions for gotk3 package (GTK-3 GUI) github.com/gotk3/gotk3
  • easynucular - some functions for nucular (Opengl-based crossplatform GUI) github.com/aarzilli/nucular
  • encodings/lib_cp1251.go - russian cp1251 char encoding help
  • easylinux - some linux-specific functions

Documentation

Index

Constants

View Source
const BytesInMb uint64 = 1024 * 1024
View Source
const COPY_LABEL = "copy"
View Source
const DEFAULT_FILE_PERMISSION os.FileMode = 776
View Source
const DEFAULT_FILE_PERMISSION_RUN os.FileMode = 777
View Source
const DEFAULT_LANG = "en"
View Source
const FILE_COMMENT = "#"
View Source
const FILE_INTERACTIVE_ASK_ERROR = 1
View Source
const FILE_INTERACTIVE_ASK_EXIST = 0
View Source
const FILE_INTERACTIVE_ASK_PANIC = 2
View Source
const FILE_INTERACTIVE_NEWNAME = "newname"
View Source
const FILE_INTERACTIVE_REPLACE = "replace"
View Source
const FILE_INTERACTIVE_RETRY = "retry"
View Source
const FILE_INTERACTIVE_SKIP = "skip"
View Source
const INT_SEPARATOR = ' '
View Source
const MAX_A = 65535 / 255 //?
View Source
const OPTIONS_TYPE_ARRAY = "Array"
View Source
const OPTIONS_TYPE_ARRAY_CODED = "ArrayCoded"
View Source
const OPTIONS_TYPE_BOOLEAN = "Boolean"
View Source
const OPTIONS_TYPE_INTEGER = "Integer"
View Source
const OPTIONS_TYPE_STRING = "String"
View Source
const OS_LINUX = 3
View Source
const OS_MAC = 2
View Source
const OS_WINDOWS = 1

Variables

View Source
var END_SLASH = ""

Functions

func A

func A(a ...interface{}) []interface{}

if a, b, c = func() and you need only "b" or only "c"

func A0

func A0(a ...interface{}) interface{}

if a, b, c = func() and you need only "a"

func AbcF

func AbcF(a float64) float64

func AbcI

func AbcI(a int) int

func AboutVersion

func AboutVersion(version string)

func AppExit

func AppExit(code int)

func AppHasArg

func AppHasArg(v string) bool

func AppProcessID

func AppProcessID() int

func AppRunArgs

func AppRunArgs() []string

func B2S

func B2S(v bool, str_true string, str_false string) string

func B2S_10

func B2S_10(v bool) string

func B2S_TF

func B2S_TF(v bool) string

func B2S_YN

func B2S_YN(v bool) string

func BlendColors

func BlendColors(argb_back [4]float64, argb_over [4]float64, maxv float64) [4]int

func ByteCountBinary

func ByteCountBinary(b int64) string

func ChanGetOrSkip

func ChanGetOrSkip(ch chan interface{}) (interface{}, bool)

func CloneBytesArray

func CloneBytesArray(arr []byte) []byte

func CompareBoolLess

func CompareBoolLess(a bool, b bool) bool

for sort

func Crypto_MD5

func Crypto_MD5(data []byte) string

func Crypto_SHA1

func Crypto_SHA1(data []byte) string

func ErrorWithText

func ErrorWithText(txt string) error

func ExecCommand

func ExecCommand(exe_name string, args ...string) (string, string, string)

func ExecCommandBytes

func ExecCommandBytes(input []byte, timeout_ms int, forkill chan *exec.Cmd, exe_name string, args ...string) ([]byte, []byte, string)

func ExecQuote

func ExecQuote(s string) string

func F2S

func F2S(v float64, prec int) string

func FileBytesRead

func FileBytesRead(fname string) (*[]byte, bool)

func FileBytesWrite

func FileBytesWrite(fname string, bytedata *[]byte, executable bool) bool

func FileCopyAtom

func FileCopyAtom(src string, dst string, copied *AInt64, buffer_size int) error

func FileDelete

func FileDelete(path string) bool
func FileEvalSymlinks(fullpath string) (string, error)

func FileExists

func FileExists(name string) bool

func FileExtension

func FileExtension(filename string) string

func FileFindFreeName

func FileFindFreeName(folderpath string, filename string, copylabel string, ext string) string
func FileIsLink(f os.FileInfo) bool

func FileLinkIsDir

func FileLinkIsDir(fullname string) bool

func FileMake

func FileMake(pathname string) bool

func FileNameForCopy

func FileNameForCopy(path_dst string, copy_label string, isdir bool) string

func FilePathEndSlashRemove

func FilePathEndSlashRemove(filepath string) string

func FilePermissionsString

func FilePermissionsString(name string) string

func FileRename

func FileRename(path_src string, path_dst string) (bool, string)

func FileSeparateNumberedName

func FileSeparateNumberedName(filename string, copylabel string, isdir bool) (string, string)

func FileSizeNiceString

func FileSizeNiceString(b int64) string

func FileSortName

func FileSortName(filename string) string

func FileSplitPathAndName

func FileSplitPathAndName(filename string) (string, string)

func FileTextRead

func FileTextRead(name string) (string, bool)

func FileTextWrite

func FileTextWrite(fname string, data string) bool

func FileToCodeGenerator

func FileToCodeGenerator(fname string, ftype string, funcffix string) string

func FolderLocation_App

func FolderLocation_App() string

func FolderLocation_UserHome

func FolderLocation_UserHome() string

func FolderLocation_WorkDir

func FolderLocation_WorkDir() string

func FolderMake

func FolderMake(pathname string) bool

func FolderPathEndSlash

func FolderPathEndSlash(path string) string

func FoldersRecursively_Copy

func FoldersRecursively_Copy(mount_list [][2]string, file_or_dir os.FileInfo, path_src_real string, path_dst_real string, counter_size *AInt64, counter_files_done *AInt64, buffer int, chan_cmd chan FileInteractiveResponse, chan_ask chan FileInteractiveRequest, current_file *AString, cmd_saved string) string

func FoldersRecursively_Delete

func FoldersRecursively_Delete(mount_list [][2]string, file_or_dir os.FileInfo, path_real string, counter_size *AInt64, counter_objects *AInt64, current_file *AString, clear_mode bool)

func FoldersRecursively_Move

func FoldersRecursively_Move(mount_list [][2]string, file_or_dir os.FileInfo, path_src_real string, path_dst_real string, counter_size *AInt64, counter_files_done *AInt64, buffer int, chan_cmd chan FileInteractiveResponse, chan_ask chan FileInteractiveRequest, current_file *AString, cmd_saved string, disk_equal bool) (string, bool)
func FoldersRecursively_Search(mount_list [][2]string, dir os.FileInfo, path_real string, search string, chan_found chan *FileReport, kill *ABool, modifyfunc func(string) string)

func FoldersRecursively_Search_Default

func FoldersRecursively_Search_Default(str string) string

func FoldersRecursively_Size

func FoldersRecursively_Size(mount_list [][2]string, file_or_dir os.FileInfo, path_real string,
	counter_size *AInt64,
	counter_files *AInt64,
	counter_folders *AInt64,
	counter_unread *AInt64,
	counter_irregular *AInt64,
	counter_mount *AInt64,
	counter_symlinks *AInt64,
	kill *ABool)

func FoldersRecursively_Walk

func FoldersRecursively_Walk(mount_list [][2]string, file_or_dir os.FileInfo, path_src_real string, path_dst_real string, method IFolderWalker, deep int, kill *ABool)

func FreeOSMemory

func FreeOSMemory()

func GarbageCollection

func GarbageCollection()

func GetGolangVersion

func GetGolangVersion() string

func GetOS

func GetOS() int

func GetOS_Bits

func GetOS_Bits() int

func GetOS_Name

func GetOS_Name() string

func GetOS_Slash

func GetOS_Slash() string

func GetPC

func GetPC() string

func GetPC_CountCores

func GetPC_CountCores() int

func GetPC_MemoryUsageMb

func GetPC_MemoryUsageMb() float64

by app

func GetPC_UserUidLoginName

func GetPC_UserUidLoginName() (string, string, string)

func GoId

func GoId() int

goroutine id

func HtmlEscape

func HtmlEscape(str string) string

func I2S

func I2S(v int) string

func I2S64

func I2S64(v int64) string

func I2Ss

func I2Ss(v int64) string

func ImageAddOver

func ImageAddOver(img1 *image.RGBA, img2 image.Image, x int, y int)

func ImageClone

func ImageClone(img image.Image) *image.RGBA

func ImageDecode

func ImageDecode(data *[]byte) image.Image

func ImageDecodeCustom

func ImageDecodeCustom(data *[]byte, customdecoder func(io.Reader) (image.Image, string, error)) image.Image

github.com/disintegration/imageorient - imageorient.Decode()

func ImageDecodeRGBA

func ImageDecodeRGBA(data *[]byte, colorTransperent color.RGBA) *image.RGBA

func ImageGrayScale

func ImageGrayScale(img image.Image) *image.Gray

func ImageResizeHalfNice

func ImageResizeHalfNice(img *image.RGBA) *image.RGBA

func ImageResizeNearest

func ImageResizeNearest(img image.Image, w int, h int) *image.RGBA

func ImageSubImage

func ImageSubImage(big image.Image, x0, y0, x1, y1 int) *image.RGBA

func ImageToCode

func ImageToCode(fname string, funcffix string) string

func InfiniteLoop

func InfiniteLoop()

func Int32Bytes

func Int32Bytes(v int32) [4]byte

func IntInArray

func IntInArray(val int, array []int) int

func InterfaceNil

func InterfaceNil(a interface{}) bool

func IsInt

func IsInt(v string) bool

func Log_TestFailed

func Log_TestFailed(t *testing.T)

func Log_TypeDetail

func Log_TypeDetail(t interface{}) string

func Log_TypeOf

func Log_TypeOf(v interface{}) string

func Log_WhereAmI

func Log_WhereAmI() string

func MAXF

func MAXF(a float64, b float64) float64

func MAXI

func MAXI(a int, b int) int

func MAXI64

func MAXI64(a int64, b int64) int64

func MINF

func MINF(a float64, b float64) float64

func MINI

func MINI(a int, b int) int

func MINI64

func MINI64(a int64, b int64) int64

func NetLocalAddr

func NetLocalAddr()

func NetPortIsFree

func NetPortIsFree(port int, timeout_milliseconds int) bool

func NetPostUrl

func NetPostUrl(url string) (string, error)

func NetReadUrlText

func NetReadUrlText(url string) (string, error)

func Prln

func Prln(v string)

func RandInt

func RandInt(min int, max int) int

func RandNew

func RandNew()

func RoundF

func RoundF(a float64) int

func RuntimeGoMaxProcs

func RuntimeGoMaxProcs(num int)

func RuntimeGosched

func RuntimeGosched()

func RuntimeLockOSThread

func RuntimeLockOSThread()

func RuntimeSetFinalizer

func RuntimeSetFinalizer(obj interface{}, finalFunc interface{})

func S2F

func S2F(v string) float64

func S2I

func S2I(v string) int

func S2I64

func S2I64(v string) int64

func Scln

func Scln() string

func Select_Int

func Select_Int(condition bool, istrue int, isfalse int) int

func SleepMS

func SleepMS(ms int)

func SortArray

func SortArray(slice interface{}, less func(i, j int) bool)

func Sqrt

func Sqrt(x float64) float64

func StringClip

func StringClip(str string, maxlen int) string

func StringCommonPrefix

func StringCommonPrefix(a string, b string) string

func StringCommonPrefixArr

func StringCommonPrefixArr(a []string) string

func StringDown

func StringDown(str string) string

func StringEnd

func StringEnd(str string, count int) string

func StringFill

func StringFill(str string, length int) string

func StringFilter

func StringFilter(str string, reg RegExp) string

func StringFind

func StringFind(where string, what string) int

not found 0, start from 1

func StringFindEnd

func StringFindEnd(where string, what string) int

not found 0, start from 1

func StringFixUTF8

func StringFixUTF8(line string) string

func StringFormat

func StringFormat(format string, args ...interface{}) string

func StringInArray

func StringInArray(val string, array []string) int

func StringJoin

func StringJoin(target []string, separator string) string

func StringLength

func StringLength(str string) int

func StringPart

func StringPart(str string, start int, end int) string

result from 1, end can be 0

func StringRemoveDoubleChar

func StringRemoveDoubleChar(str string, one_char string) string

func StringReplace

func StringReplace(str string, from string, to string) string

func StringSplit

func StringSplit(target string, separator string) []string

func StringSplitLines

func StringSplitLines(target string) []string

func StringTitle

func StringTitle(str string) string

func StringTrim

func StringTrim(str string) string

func StringUp

func StringUp(str string) string

func TimeGolang

func TimeGolang(t Time) time.Time

func TimeIsSorted

func TimeIsSorted(time1 Time, time2 Time) bool

func TimeNowStr

func TimeNowStr() string

func TimeSeconds

func TimeSeconds(start Time) float64

func TimeSecondsSub

func TimeSecondsSub(start Time, finished Time) float64

func TimeStr

func TimeStr(t Time, seconds bool) string

func TimeWeekday

func TimeWeekday(t Time) int

func UrlQueryEscape

func UrlQueryEscape(urlstr string) string

func UrlQueryParse

func UrlQueryParse(urlstr string) (url.Values, error)

func UrlQueryUnescape

func UrlQueryUnescape(urlstr string) string

func XOR

func XOR(X bool, Y bool) bool

Types

type ABool

type ABool struct {
	// contains filtered or unexported fields
}

func NewAtomicBool

func NewAtomicBool(initv bool) *ABool

func NewAtomicBoolTxt

func NewAtomicBoolTxt(initv bool, truefalse [2]string) *ABool

func (*ABool) Get

func (a *ABool) Get() bool

func (*ABool) GetStr

func (a *ABool) GetStr() string

func (*ABool) Set

func (a *ABool) Set(value bool)

type AFloat

type AFloat struct {
	// contains filtered or unexported fields
}

func (*AFloat) Add

func (f *AFloat) Add(move float64) float64

func (*AFloat) Get

func (a *AFloat) Get() float64

func (*AFloat) Set

func (a *AFloat) Set(value float64)

type AInt

type AInt struct {
	// contains filtered or unexported fields
}

func NewAtomicInt

func NewAtomicInt(initv int) *AInt

func (*AInt) Add

func (a *AInt) Add(move int) int

func (*AInt) Get

func (a *AInt) Get() int

func (*AInt) Set

func (a *AInt) Set(value int)

type AInt64

type AInt64 struct {
	// contains filtered or unexported fields
}

func NewAtomicInt64

func NewAtomicInt64(initv int64) *AInt64

func (*AInt64) Add

func (a *AInt64) Add(move int64) int64

func (*AInt64) Get

func (a *AInt64) Get() int64

func (*AInt64) Set

func (a *AInt64) Set(value int64)

type AString

type AString struct {
	// contains filtered or unexported fields
}

func NewAtomicString

func NewAtomicString(initv string) *AString

func (*AString) Get

func (a *AString) Get() string

func (*AString) Set

func (a *AString) Set(value string)

type FileInteractiveRequest

type FileInteractiveRequest struct {
	Attempt   int
	FileName  string
	AskType   int
	ErrorText string
}

type FileInteractiveResponse

type FileInteractiveResponse struct {
	Command    string
	SaveChoice bool
}

type FileReport

type FileReport struct {
	Path        string
	NameOnly    string
	FullName    string
	IsRegular   bool
	IsDirectory bool
	IsLink      bool
	SizeBytes   int64
	// contains filtered or unexported fields
}

func FileInfo

func FileInfo(fullname string, fixlinks_isdir bool) (FileReport, error)

'os.Lstat()' reads the link itself. 'os.Stat()' would read the link's target.

func Folder_ListFiles

func Folder_ListFiles(dirname string, fixlinks_isdir bool) ([]FileReport, error)

func NewFileReport

func NewFileReport(fi os.FileInfo, path string, fixlinks_isdir bool) FileReport

func (FileReport) IsDir

func (fr FileReport) IsDir() bool

func (FileReport) ModTime

func (fr FileReport) ModTime() time.Time

func (FileReport) Mode

func (fr FileReport) Mode() os.FileMode

func (FileReport) Name

func (fr FileReport) Name() string

func (*FileReport) SetModeTime

func (fr *FileReport) SetModeTime(mode string, modTime Time)

func (FileReport) Size

func (fr FileReport) Size() int64

func (FileReport) Sys

func (fr FileReport) Sys() interface{}

type FuncArr

type FuncArr struct {
	// contains filtered or unexported fields
}

func NewFuncArr

func NewFuncArr() *FuncArr

func (*FuncArr) Add

func (fa *FuncArr) Add(f *func())

func (*FuncArr) ExecAll

func (fa *FuncArr) ExecAll()

func (*FuncArr) Remove

func (fa *FuncArr) Remove(f *func())

type IFolderWalker

type IFolderWalker interface {
	WithFile(f os.FileInfo, regular bool, path_src string, path_dst string)
	WithFolderBefore(f os.FileInfo, is_mount bool, path_src string, path_dst string, deep int) (string, bool)
	WithFolderAfter(f os.FileInfo, is_mount bool, list_err bool, path_src string, path_dst string)
	WithLink(f os.FileInfo, is_folder bool, path_src string, path_dst string) bool
}

type LangArr

type LangArr struct {
	// contains filtered or unexported fields
}

func InitLang

func InitLang(fname string) *LangArr

func LangArrNew

func LangArrNew(txt string) *LangArr

func (*LangArr) GetLangsCodes

func (a *LangArr) GetLangsCodes() []string

func (*LangArr) GetLangsTitles

func (a *LangArr) GetLangsTitles(codes []string) []string

func (*LangArr) GetStr

func (a *LangArr) GetStr(str_code string) string

func (*LangArr) SetLang

func (a *LangArr) SetLang(lang_code string)

type Log

type Log struct {
	Arr     [][]string
	Counter int
	Mutex   *SyncMutex
	MaxSize int
}

func LogNew

func LogNew(MaxSize int) *Log

func (*Log) Print

func (log *Log) Print(separator string, reverse bool) string

func (*Log) Push

func (log *Log) Push(new_msg string)

type OptionsStorage

type OptionsStorage struct {
	// contains filtered or unexported fields
}

func NewOptionsStorage

func NewOptionsStorage() *OptionsStorage

func (*OptionsStorage) AddRecord_Array

func (s *OptionsStorage) AddRecord_Array(order int, key string, value_default string, values_allowed []string, values_titles []string, key_comment string)

func (*OptionsStorage) AddRecord_Boolean

func (s *OptionsStorage) AddRecord_Boolean(order int, key string, value_default bool, key_comment string)

func (*OptionsStorage) AddRecord_Integer

func (s *OptionsStorage) AddRecord_Integer(order int, key string, value_default int, value_min int, value_max int, key_comment string)

func (*OptionsStorage) AddRecord_String

func (s *OptionsStorage) AddRecord_String(order int, key string, value_default string, key_comment string)

func (*OptionsStorage) GetRecordComment

func (s *OptionsStorage) GetRecordComment(key string) string

func (*OptionsStorage) GetRecordMinMaxStep

func (s *OptionsStorage) GetRecordMinMaxStep(key string) (float64, float64, float64)

func (*OptionsStorage) GetRecordTitlesArray

func (s *OptionsStorage) GetRecordTitlesArray(key string) []string

func (*OptionsStorage) GetRecordType

func (s *OptionsStorage) GetRecordType(key string) string

func (*OptionsStorage) GetRecordValuesArray

func (s *OptionsStorage) GetRecordValuesArray(key string) []string

func (*OptionsStorage) GetRecordsKeys

func (s *OptionsStorage) GetRecordsKeys() []string

func (*OptionsStorage) RecordsValues_Load

func (s *OptionsStorage) RecordsValues_Load(fname string)

func (*OptionsStorage) RecordsValues_Save

func (s *OptionsStorage) RecordsValues_Save(fname string)

func (*OptionsStorage) ValueGetArrayIndex

func (s *OptionsStorage) ValueGetArrayIndex(key string) int

func (*OptionsStorage) ValueGetBoolean

func (s *OptionsStorage) ValueGetBoolean(key string) bool

func (*OptionsStorage) ValueGetInteger

func (s *OptionsStorage) ValueGetInteger(key string) int

func (*OptionsStorage) ValueGetString

func (s *OptionsStorage) ValueGetString(key string) string

func (*OptionsStorage) ValueSetArrayIndex

func (s *OptionsStorage) ValueSetArrayIndex(key string, value int)

func (*OptionsStorage) ValueSetBoolean

func (s *OptionsStorage) ValueSetBoolean(key string, value bool)

func (*OptionsStorage) ValueSetInteger

func (s *OptionsStorage) ValueSetInteger(key string, value int)

func (*OptionsStorage) ValueSetString

func (s *OptionsStorage) ValueSetString(key string, value string)

type OptionsStorageItem

type OptionsStorageItem struct {
	// contains filtered or unexported fields
}

type RegExp

type RegExp struct {
	// contains filtered or unexported fields
}

func StringFilterCompile

func StringFilterCompile(pattern string) RegExp

type SyncMutex

type SyncMutex struct {
	// contains filtered or unexported fields
}

func NewSyncMutex

func NewSyncMutex() *SyncMutex

func (*SyncMutex) Lock

func (s *SyncMutex) Lock()

func (*SyncMutex) Unlock

func (s *SyncMutex) Unlock()

type SyncMutexRW

type SyncMutexRW struct {
	// contains filtered or unexported fields
}

func NewSyncMutexRW

func NewSyncMutexRW() *SyncMutexRW

func (*SyncMutexRW) R_Lock

func (s *SyncMutexRW) R_Lock()

func (*SyncMutexRW) R_Unlock

func (s *SyncMutexRW) R_Unlock()

func (*SyncMutexRW) W_Lock

func (s *SyncMutexRW) W_Lock()

func (*SyncMutexRW) W_Unlock

func (s *SyncMutexRW) W_Unlock()

type SyncMutexRW_OneWriterProtected

type SyncMutexRW_OneWriterProtected struct {
	// contains filtered or unexported fields
}

func NewSyncMutexRW_OneWriterProtected

func NewSyncMutexRW_OneWriterProtected() *SyncMutexRW_OneWriterProtected

func (*SyncMutexRW_OneWriterProtected) R_Lock

func (s *SyncMutexRW_OneWriterProtected) R_Lock()

func (*SyncMutexRW_OneWriterProtected) R_Unlock

func (s *SyncMutexRW_OneWriterProtected) R_Unlock()

func (*SyncMutexRW_OneWriterProtected) W_Lock

func (s *SyncMutexRW_OneWriterProtected) W_Lock()

func (*SyncMutexRW_OneWriterProtected) W_Unlock

func (s *SyncMutexRW_OneWriterProtected) W_Unlock()

type SyncOnce

type SyncOnce struct {
	// contains filtered or unexported fields
}

func (*SyncOnce) Do

func (s *SyncOnce) Do(f func())

type SyncQueue

type SyncQueue struct {
	// contains filtered or unexported fields
}

https://github.com/sheerun/queue/blob/master/queue.go

func NewSyncQueue

func NewSyncQueue() *SyncQueue

func (*SyncQueue) Append

func (s *SyncQueue) Append(elem interface{})

func (*SyncQueue) Clear

func (s *SyncQueue) Clear()

func (*SyncQueue) GetBegin

func (s *SyncQueue) GetBegin() interface{}

func (*SyncQueue) GetEnd

func (s *SyncQueue) GetEnd() interface{}

func (*SyncQueue) Length

func (s *SyncQueue) Length() int

type SyncWaitGroup

type SyncWaitGroup struct {
	// contains filtered or unexported fields
}

func NewSyncWaitGroup

func NewSyncWaitGroup() *SyncWaitGroup

func (*SyncWaitGroup) Add

func (s *SyncWaitGroup) Add(delta int)

func (*SyncWaitGroup) Done

func (s *SyncWaitGroup) Done()

func (*SyncWaitGroup) Wait

func (s *SyncWaitGroup) Wait()

type Time

type Time time.Time

func TimeAddDays

func TimeAddDays(t Time, days int) Time

func TimeAddMS

func TimeAddMS(t Time, ms int) Time

func TimeNow

func TimeNow() Time

func TimeZero

func TimeZero() Time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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