crayon-syntax-highlighter/util/sample/go.txt
2019-08-30 19:30:19 +02:00

12 lines
258 B
Plaintext

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)
}