added fancier logging

This commit is contained in:
Stephen McQuay 2015-02-04 21:35:25 -08:00
parent b50556eadd
commit 6ee99699f5
2 changed files with 8 additions and 1 deletions

View File

@ -15,9 +15,10 @@ func main() {
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
log.Println("locked and loaded")
point := robo.Point{}
for {
var err error

View File

@ -1,7 +1,13 @@
package robo
import "log"
const Port = 1337
type Point struct {
X, Y float64
}
func init() {
log.SetFlags(log.Lmicroseconds | log.Lshortfile)
}