diff options
author | Martin Ashby <martin@ashbysoft.com> | 2018-05-18 22:49:25 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2018-05-18 22:49:25 +0000 |
commit | 20ee809e540556801fca87a573852d16c2ac7388 (patch) | |
tree | 7fafc3115565c07f736d6bc6a42948a270e0a5f6 /Unicorn.go | |
parent | d2dea8058c88b39f161178f59c6bfec0e32dfa02 (diff) | |
download | unicornpaint-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.go | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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 +} |