func path/filepath.Ext

3 uses

	path/filepath (current package)
		path.go#L138: func Ext(path string) string {

	golang.org/x/tools/go/packages
		golist.go#L557: 				if ext := filepath.Ext(f); ext != ".go" && ext != "" { // ext == "" means the file is from the cache, so probably cgo-processed file

	net/http
		fs.go#L283: 		ctype = mime.TypeByExtension(filepath.Ext(name))