github.com/sridharv/stencil@v0.0.0-20170626103218-a81b4a7626a1/testdata/interfaces.int.golden (about)

     1  package ifaces
     2  
     3  type holder struct {
     4  	data int
     5  }
     6  
     7  type orderedPair struct {
     8  	first  int
     9  	second int
    10  }
    11  
    12  type Set map[int]struct{}
    13  
    14  func (s Set) Add(a int) {
    15  	s[a] = struct{}{}
    16  }
    17  
    18  func (s Set) Delete(a int) {
    19  	delete(s, a)
    20  }