github.com/coming-chat/gomobile@v0.0.0-20220601074111-56995f7d7aba/bind/testdata/ignore.go (about)

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