golang.org/x/tools@v0.21.0/internal/refactor/inline/testdata/internal.txtar (about) 1 Test of inlining a function that references an 2 internal package that is not accessible to the caller. 3 4 (c -> b -> b/internal/a) 5 6 -- go.mod -- 7 module testdata 8 go 1.12 9 10 -- b/internal/a/a.go -- 11 package a 12 13 func A() {} 14 15 -- b/b.go -- 16 package b 17 18 import "testdata/b/internal/a" 19 20 func B() { a.A() } 21 22 -- c/c.go -- 23 package c 24 25 import "testdata/b" 26 27 func _() { 28 b.B() //@ inline(re"B", re`body refers to inaccessible package "testdata/b/internal/a"`) 29 }