MCPcopy Create free account
hub / github.com/google/go-github / main

Function main

tools/redundantptr/testdata/src/no-warnings/github.go:8–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6package github
7
8func main() {
9 // Literal argument cannot be addressed.
10 _ = Ptr("a.txt")
11
12 const file = "a.txt"
13 _ = Ptr(file)
14
15 for range []int{1, 2} {
16 _ = Ptr("a")
17 }
18
19 _ = Ptr(getOptions().Mode)
20}
21
22func getOptions() struct {
23 Mode string

Callers

nothing calls this directly

Calls 2

getOptionsFunction · 0.85
PtrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…