github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2013/bestpractices/funcdraw/drawer/drawer.go (about) 1 // +build ignore,OMIT 2 3 package drawer 4 5 // START OMIT 6 import "image" 7 8 // Function represent a drawable mathematical function. 9 type Function interface { 10 Eval(float64) float64 11 } 12 13 // Draw draws an image showing a rendering of the passed Function. 14 func Draw(f Function) image.Image { 15 // END OMIT 16 return nil 17 }