Dumping ground for go libraries.
- MDB: See the license in
third_party/mdb
- Selenium: See the license in
third_party/selenium
Accumulate and join errors.
Logical or two values with defaults, e.g.
v := or.Int(a, b)
is the same as
v := a
if v == 0 {
v = b
}
Emulate the ternary ? :
v := cond.Int(b, a, z)
is the same as
v := a
if b {
v = z
}
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()
}
To generate selenium/seleniumserver.go
run:
go run writeseleniumjar.go