This file is indexed.

/usr/share/gocode/src/github.com/coreos/pkg/netutil/url.go is in golang-github-coreos-pkg-dev 0.0~git20151028.0.2c77715-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
package netutil

import (
	"net/url"
)

// MergeQuery appends additional query values to an existing URL.
func MergeQuery(u url.URL, q url.Values) url.URL {
	uv := u.Query()
	for k, vs := range q {
		for _, v := range vs {
			uv.Add(k, v)
		}
	}
	u.RawQuery = uv.Encode()
	return u
}