ignore.go 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 ignore tests that exported, but otherwise
  5. // unsupported functions, variables, fields and methods
  6. // are ignored by the generators
  7. package ignore
  8. var Var interface{}
  9. type (
  10. NamedString string
  11. )
  12. const NamedConst NamedString = "foo"
  13. var V interface{}
  14. func Argument(_ interface{}) {
  15. }
  16. func Result() interface{} {
  17. return nil
  18. }
  19. type S struct {
  20. F interface{}
  21. }
  22. type (
  23. F func()
  24. )
  25. func (_ *S) Argument(_ interface{}) {
  26. }
  27. func (_ *S) Result() interface{} {
  28. return nil
  29. }
  30. type I interface {
  31. Argument(_ interface{})
  32. Result() interface{}
  33. }
  34. var (
  35. Uint uint
  36. Uint32 uint32
  37. Uint64 uint64
  38. C64 complex64 = 0
  39. C128 complex128 = 0
  40. )
  41. const (
  42. Cuint uint = 0
  43. Cuint32 uint32 = 0
  44. Cuint64 uint64 = 0
  45. )