aboutsummaryrefslogtreecommitdiff
path: root/Unicorn.go
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2018-05-18 22:49:25 +0000
committerMartin Ashby <martin@ashbysoft.com>2018-05-18 22:49:25 +0000
commit20ee809e540556801fca87a573852d16c2ac7388 (patch)
tree7fafc3115565c07f736d6bc6a42948a270e0a5f6 /Unicorn.go
parentd2dea8058c88b39f161178f59c6bfec0e32dfa02 (diff)
downloadunicornpaint-20ee809e540556801fca87a573852d16c2ac7388.tar.gz
unicornpaint-20ee809e540556801fca87a573852d16c2ac7388.tar.bz2
unicornpaint-20ee809e540556801fca87a573852d16c2ac7388.tar.xz
unicornpaint-20ee809e540556801fca87a573852d16c2ac7388.zip
Go server now working
Diffstat (limited to 'Unicorn.go')
-rw-r--r--Unicorn.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/Unicorn.go b/Unicorn.go
index 905cc0a..8042358 100644
--- a/Unicorn.go
+++ b/Unicorn.go
@@ -1,7 +1,7 @@
package main
import (
- "log"
+ // "log"
)
// Unicorn ...
@@ -32,11 +32,10 @@ type Unicorn interface {
// if it can't find one then gives you a fake one.
func GetUnicorn() (unicorn Unicorn, err error) {
unicorn, err = NewReal()
- if err != nil {
- log.Println("Couldn't get a real unicorn, trying a fake one")
- unicorn, err = NewFake(uint8(16), uint8(16))
- }
- unicorn, err = NewFake(uint8(16), uint8(16))
+ //if err != nil {
+ // log.Println("Couldn't get a real unicorn, trying a fake one")
+ // unicorn, err = NewFake(uint8(16), uint8(16))
+ //}
return
}
@@ -77,4 +76,4 @@ func makePixels(width, height uint8) [][][]uint8 {
func rgb(pixel []uint8) (uint8, uint8, uint8) {
return pixel[0], pixel[1], pixel[2]
-} \ No newline at end of file
+}