Skip to content

spudtrooper/goutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github.com/spudtrooper/goutil

Dumping ground for go libraries.

third party code

  • MDB: See the license in third_party/mdb
  • Selenium: See the license in third_party/selenium

errors

Accumulate and join errors.

or

Logical or two values with defaults, e.g.

v := or.Int(a, b)

is the same as

v := a
if v == 0 {
    v = b
}

cond

Emulate the ternary ? :

v := cond.Int(b, a, z)

is the same as

v := a
if b {
    v = z
}

lazycond

Emulate the ternary ? : lazily

Given

a := func() int { return 1 }
z := func() int { return 2 }
v := lazycond.Int(b, a, z)

is the same as

v := a()
if b {
    v = z()
}

internal

To generate selenium/seleniumserver.go run:

go run writeseleniumjar.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages