Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is "A Tour of Go" trying to say?
    primarykey
    data
    text
    <p>There are a few points in the tutorial that sort of leave you on your own without a clue or link if you're not in the know I guess. So I'm sorry about the length of these:</p> <p><a href="http://tour.golang.org/#15" rel="nofollow noreferrer">http://tour.golang.org/#15</a></p> <pre><code>Try printing needInt(Big) too </code></pre> <p>I'm guessing ints are allowed less bits than constants?</p> <hr> <p><a href="http://tour.golang.org/#21" rel="nofollow noreferrer">http://tour.golang.org/#21</a></p> <pre><code>the { } are required. (Sound familiar?) </code></pre> <p>Which language is alluded to?</p> <hr> <p><a href="http://tour.golang.org/#25" rel="nofollow noreferrer">http://tour.golang.org/#25</a></p> <pre><code>(And a type declaration does what you'd expect.) </code></pre> <p>Why do we need the word <code>type</code> and the word <code>struct</code>? What was I supposed to expect?</p> <hr> <p><a href="http://tour.golang.org/#28" rel="nofollow noreferrer">http://tour.golang.org/#28</a></p> <p>Why implicit zeroes in the constructor? This sounds like a dangerous design choice by Go. Is there a PEP or anything beyond <a href="http://golang.org/doc/go_faq.html" rel="nofollow noreferrer">http://golang.org/doc/go_faq.html</a> on this?</p> <hr> <p><a href="http://tour.golang.org/#30" rel="nofollow noreferrer">http://tour.golang.org/#30</a></p> <p><code>Make</code>? Are there constructors? What's the difference between <code>new</code> and <code>make</code>?</p> <hr> <p><a href="http://tour.golang.org/#33" rel="nofollow noreferrer">http://tour.golang.org/#33</a></p> <p>Where did <code>delete</code> come from? I didn't import it.</p> <hr> <p><a href="http://tour.golang.org/#36" rel="nofollow noreferrer">http://tour.golang.org/#36</a></p> <p>What's the <code>%v</code> formatter stand for? Value?</p> <hr> <p><a href="http://tour.golang.org/#47" rel="nofollow noreferrer">http://tour.golang.org/#47</a></p> <pre><code>panic: runtime error: index out of range goroutine 1 [running]: tour/pic.Show(0x400c00, 0x40ca61) go/src/pkg/tour/pic/pic.go:24 +0xd4 main.main() /tmpfs/gosandbox-15c0e483_5433f2dc_ff6f028f_248fd0a7_d7c2d35b/prog.go:14 +0x25 </code></pre> <p>I guess I broke go somehow....</p> <pre><code>package main import "tour/pic" func Pic(dx, dy int) [][]uint8 { image := make([][]uint8, 10) for i := range image { image[i] = make([]uint8, 10) } return image } func main() { pic.Show(Pic) } </code></pre> <hr> <p><a href="http://tour.golang.org/#59" rel="nofollow noreferrer">http://tour.golang.org/#59</a></p> <p>I return error values when a function fails? I have to qualify every single function call with an error check? The flow of the program is uninterrupted when I write crazy code? E.g. <code>Copy(only_backup, elsewhere);Delete(only_backup)</code> and Copy fails....</p> <p>Why would they design it like that?</p> <hr>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload