19 package main 20 21 import "golang.org/x/tour/pic" 22 23 func Pic(dx, dy, dz int) [][][]uint8 { 24 pic := make([][][]uint8, dy) 25 for i := range pic { 26 pic[i] = make([][]uint8, dx) 27 for j := range pic { 28 pic[j] = make([][]uint8, dz) 29 for k := range pic { 30 pic[i][j][k] = uint8(((j ^ i ^ k) ^ 10) * (10 ^ (i * j * k))) 31 } 32 } 33 } 34 return pic 35 } 36 func main() { 37 pic.Show(Pic) 38 }Sounds to be a limitation in pic.gohttps://github.com/golang/tour/blob/master/pic/pic.go
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
:!go run exo-test-slice.goexo-test-slice.go:21:8: cannot find package "github.com/4ur3l13n/go/blob/master/pic" in any of: /usr/lib/go/src/github.com/4ur3l13n/go/blob/master/pic (from $GOROOT) /home/aurelien/go/src/github.com/4ur3l13n/go/blob/master/pic (from $GOPATH)
shell returned 1
On Sun, 9 Aug 2015 9:00 PM aurelien <aurelien....@gmail.com> wrote:
Hi Justin,
Yes that is what I was understanding by continuing to works on it ... and I was trying to bring that 3rd dimension to pic by modifying it directly and try to bring it back to part of the code by import this version of pic.go.
https://github.com/4ur3l13n/go/blob/master/pic/pic.go
But I do not find the way to make the exo-test-slice.go use my pic.go
:!go run exo-test-slice.go
exo-test-slice.go:21:8: cannot find package "github.com/4ur3l13n/go/blob/master/pic" in any of:
/usr/lib/go/src/github.com/4ur3l13n/go/blob/master/pic (from $GOROOT)
/home/aurelien/go/src/github.com/4ur3l13n/go/blob/master/pic (from $GOPATH)
shell returned 1
If you are trying to use that modified version of the pic package, then it would be expected to have an import path like:
And physically live here in your GOPATH:
/home/aurelien/go/src/github.com/4ur3l13n/go/pic