Skip to content

Instantly share code, notes, and snippets.

@caelifer
Created November 13, 2015 02:30
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 caelifer/4a0f21ba637ab2b363fb to your computer and use it in GitHub Desktop.
Save caelifer/4a0f21ba637ab2b363fb to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"math/rand"
"reflect"
"testing/quick"
)
type Point struct {
X, Y byte
}
func main() {
rnd := rand.New(rand.NewSource(42))
t := reflect.TypeOf(Point{})
v, _ := quick.Value(t, rnd)
fmt.Println(v)
}
@caelifer
Copy link
Author

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