Documentation ¶
Index ¶
- Variables
- func BinPath() string
- func CompileRegexp(regexpText string) *regexp.Regexp
- func CurrentDir() string
- func DirExists(filename string) bool
- func FileExists(filename string) bool
- func FileRead(filename string) ([]byte, error)
- func FileWrite(filename string, data []byte) error
- func GetHTTPProxy() func(*http.Request) (*url.URL, error)
- func GetHTTPProxyURL() string
- func GetSubDirs(parentDirPath string) ([]string, error)
- func GetVolumes() []string
- func HomeDir() string
- func InfiniteChannel() (chan<- interface{}, <-chan interface{})
- func ListFilesRecursively(path string) ([]string, error)
- func Max(x, y int) int
- func Min(x, y int) int
- func MustFileRead(filename string) []byte
- func MustFileWrite(filename string, data []byte)
- func MustJsonMarshal(v interface{}) []byte
- func MustJsonUnmarshal(bytes []byte, v interface{})
- func ParseInt(text string, def int) int
- func PrettyString(v interface{}) string
- func RandomString(n int) string
- func ReadDirRecursively(path string) ([]os.FileInfo, error)
- func ReadLine() string
- func RecentItems(items []string, item string, maxSize int) []string
- func RecentPaths(items []string, item string, maxSize int) []string
- func RunesText(text string, length int) string
- func SetConsoleTitle(title string) (int, error)
- func SetDefaultHTTPProxy()
- func StringsContains(s []string, e string) bool
- func StringsIndex(s []string, e string) int
- func StringsIndexIC(s []string, e string) int
- func Text(text string, length int) string
- type Actor
- type Bitmask
Constants ¶
This section is empty.
Variables ¶
View Source
var MachineID = getMachineID()
Functions ¶
func CompileRegexp ¶
func CurrentDir ¶
func CurrentDir() string
func FileExists ¶
func GetHTTPProxyURL ¶
func GetHTTPProxyURL() string
func GetSubDirs ¶
func GetVolumes ¶
func GetVolumes() []string
func InfiniteChannel ¶
func InfiniteChannel() (chan<- interface{}, <-chan interface{})
InfiniteChannel returns infinite in and out channels https://medium.com/capital-one-tech/building-an-unbounded-channel-in-go-789e175cd2cd
func ListFilesRecursively ¶
func MustFileRead ¶
func MustFileWrite ¶
func MustJsonMarshal ¶
func MustJsonMarshal(v interface{}) []byte
func MustJsonUnmarshal ¶
func MustJsonUnmarshal(bytes []byte, v interface{})
func PrettyString ¶
func PrettyString(v interface{}) string
func RandomString ¶
func SetConsoleTitle ¶
func SetDefaultHTTPProxy ¶
func SetDefaultHTTPProxy()
func StringsContains ¶
func StringsIndex ¶
func StringsIndexIC ¶
Types ¶
type Actor ¶
type Actor struct {
// contains filtered or unexported fields
}
func (*Actor) Do ¶
func (t *Actor) Do(f func())
Do runs the specified func in the using the actor routine
func (*Actor) DoFunc ¶
func (t *Actor) DoFunc(f func() interface{}) interface{}
Do runs the specified func in the using the actor routine and returns the result
func (*Actor) WaitAllDone ¶
func (t *Actor) WaitAllDone()
WaitAllDone waits until all scheduled work has been done
Source Files ¶
Click to show internal directories.
Click to hide internal directories.