Skip to content

Instantly share code, notes, and snippets.

@rektide
Created July 7, 2016 20:59
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 rektide/f7f87f1c13fe96c11832f11bf4a9cc8a to your computer and use it in GitHub Desktop.
Save rektide/f7f87f1c13fe96c11832f11bf4a9cc8a to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
type FooCollector struct {
foo string
}
func NewFooCollector() (FooCollector) {
return &fooCollector {
foo: "bar"
}
}
func main() {
rad := NewFooCollector()
fmt.Println(rad.foo)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment