Skip to content

Instantly share code, notes, and snippets.

View ezk84's full-sized avatar

Ezequiel Muns ezk84

  • Berlin, Germany
View GitHub Profile
@karlseguin
karlseguin / now.go
Created June 9, 2013 07:28
Testable time.Now in GoLang
package t
import (
"time"
)
type NowFunc func() time.Time
var Now = func() time.Time { return time.Now() }
func NowForce(unix int) {
@umpirsky
umpirsky / A.markdown
Last active August 3, 2023 18:14 — forked from olivierlacan/An_example.markdown
Sublime Text Monokai Sidebar Theme.
@mdwhatcott
mdwhatcott / Iterative_example_test.go
Created February 28, 2014 05:20
Example of using table-driven testing with GoConvey (also shows how to use `Reset`)
package regexps
import (
"fmt"
"regexp"
"testing"
. "github.com/smartystreets/goconvey/convey"
)