Skip to content

Instantly share code, notes, and snippets.

@dqminh
Created September 26, 2013 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dqminh/6708703 to your computer and use it in GitHub Desktop.
Save dqminh/6708703 to your computer and use it in GitHub Desktop.
func PublicMethod() {
someFunc("hello")
}
func someFunc(a String) {
}
func TestStuff(t *testing.T) {
someFunc = func(a String) {
}
PublicMethod()
}
@petejkim
Copy link

i think you want var someFunc = func(a String) in line 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment