Debian Codegraph @

bind/testdata/testpkg/secondpkg/secondpkg.go

raw
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 secondpkg is imported by bind tests that verify
6 // that a bound package can reference another bound package.
7 package secondpkg
8
9 type (
10 Ser interface {
11 S(_ *S)
12 }
13
14 IF interface {
15 F()
16 }
17
18 I interface {
19 F(i int) int
20 }
21
22 S struct{}
23 )
24
25 func (_ *S) F(i int) int {
26 return i
27 }
28
29 const HelloString = "secondpkg string"
30
31 func Hello() string {
32 return HelloString
33 }
34
35 type Secondpkg struct {
36 V string
37 }
38
39 func (_ *Secondpkg) M() {
40 }
41
42 func NewSecondpkg() *Secondpkg {
43 return new(Secondpkg)
44 }