<p dir="auto">by <strong><a href="mailto:harmen@typetypetype.net">harmen@typetypetype.net</a></strong>:</p>
<pre class="notranslate">- What does 'go version' print?

go version devel +b3abbfe35b6f Thu Sep 04 23:14:21 2014 -0400 linux/amd64


- What steps reproduce the problem?

This (correctly) doesn't compile:

    _ = map[string]string{
        "aap": "noot",
        "aap": "mies",
    }   

With a 'duplicate key "aap" in map literal' error.

This does, though:

    type t struct {
        b string
    }

    _ = map[t]string{
        t{
            b: "1.2.3.4",
        }: "probe1",
        t{
            b: "1.2.3.5",
        }: "client1",
        t{
            b: "1.2.3.5", // Duplicate!
        }: "client1",
    }

Both are on <a href="http://play.golang.org/p/clJ4G8CbcQ" rel="nofollow">http://play.golang.org/p/clJ4G8CbcQ</a>

- What should have happened instead?

Would be great if the fancy key version also doesn't compile.</pre>
<p dir="auto">by <strong><a href="mailto:peter.dain@btinternet.com">peter.dain@btinternet.com</a></strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?

When looking up description of for example bytes.Index in bytes package, clicking on the
godoc HTML link takes you to the tag for index of the bytes package rather than the
expected method description.

Looking at HTML source for page I see duplicate use of:

  h2 id="index"

in page for package.

Windows Browser used was IE9 (9.0.8)

What is the expected output?

Expect to see description of 
  func Index(s, sep []byte) int

What do you see instead?

Browser went to Package Index listing

Which compiler are you using (5g, 6g, 8g, gccgo)?

n/a

Which operating system are you using?

Windows 7

Which version are you using?  (run 'go version')

go version go1.0.2 (same behaviour on godoc for tip.golang.org)

Please provide any additional information below.

When looking at package to find strstr type function it wasn't immediately obvious to me
bytes.Index was the one, I wonder if changing the parameter name from sep to something
else (seq?) might help</pre>