DasJott / tools

Jott tools for go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#tools

global

things regarding globalization

contents

  • ZoneMap
    Map from timezone names to its offset on UTC (map[string]time.Duration)

tasker

one or more tasks running concurrently.

example

tasker.Add(
	func() {
		// whatever yiu want to do
	},
	func() {
		// something else
	},
).Wait()
// execution blocked until all tasks finish

OR

t := tasker.Add(func() {
	// whatever you want to do
}).Add(func() {
	// something else
}).Later()
// Later returns immediately and can be continued by calling t.Now()

About

Jott tools for go


Languages

Language:Go 98.6%Language:JavaScript 1.0%Language:Shell 0.4%