fork
This commit is contained in:
11
util/sample/go.txt
Normal file
11
util/sample/go.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
package geometry
|
||||
import "math"
|
||||
// Test functions
|
||||
func add(a, b int) int { return a + b }
|
||||
func (self *Point) Scale(factor float64) {
|
||||
self.setX(self.x * factor)
|
||||
self.setY(self.y * factor)
|
||||
}
|
||||
type Writer interface {
|
||||
Write(p []byte) (n int, err os.Error)
|
||||
}
|
Reference in New Issue
Block a user