github.com/amarpal/go-tools@v0.0.0-20240422043104-40142f59f616/quickfix/qf1008/testdata/src/example.com/CheckExplicitEmbeddedSelector/CheckExplicitEmbeddedSelector-unexported.go (about)

     1  package pkg
     2  
     3  type UnexportedSamePackageOuter struct {
     4  	unexportedSamePackageInner
     5  }
     6  
     7  type unexportedSamePackageInner struct {
     8  	F10 int
     9  }
    10  
    11  func fnUnexported() {
    12  	var unexportedSame UnexportedSamePackageOuter
    13  	_ = unexportedSame.unexportedSamePackageInner.F10 //@ diag(`could remove embedded field "unexportedSamePackageInner" from selector`)
    14  	_ = unexportedSame.F10                            // minimal form
    15  }