simplepkg.go 549 B

12345678910111213141516
  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Package simplepkg is imported from testpkg and tests two
  5. // corner cases.
  6. // First: simplepkg itself contains no (exported) functions
  7. // or methods and so its generated Go package must not import
  8. // it.
  9. //
  10. // Second: even though testpkg imports simplepkg, testpkg's
  11. // generated Go package ends up not referencing simplepkg and
  12. // must not import it.
  13. package simplepkg
  14. type S struct{}