Adding upstream version 0.0~git20250520.a1d9079+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
590ac7ff5f
commit
20149b7f3a
456 changed files with 70406 additions and 0 deletions
44
bind/testdata/testpkg/secondpkg/secondpkg.go
vendored
Normal file
44
bind/testdata/testpkg/secondpkg/secondpkg.go
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
// Copyright 2016 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package secondpkg is imported by bind tests that verify
|
||||
// that a bound package can reference another bound package.
|
||||
package secondpkg
|
||||
|
||||
type (
|
||||
Ser interface {
|
||||
S(_ *S)
|
||||
}
|
||||
|
||||
IF interface {
|
||||
F()
|
||||
}
|
||||
|
||||
I interface {
|
||||
F(i int) int
|
||||
}
|
||||
|
||||
S struct{}
|
||||
)
|
||||
|
||||
func (_ *S) F(i int) int {
|
||||
return i
|
||||
}
|
||||
|
||||
const HelloString = "secondpkg string"
|
||||
|
||||
func Hello() string {
|
||||
return HelloString
|
||||
}
|
||||
|
||||
type Secondpkg struct {
|
||||
V string
|
||||
}
|
||||
|
||||
func (_ *Secondpkg) M() {
|
||||
}
|
||||
|
||||
func NewSecondpkg() *Secondpkg {
|
||||
return new(Secondpkg)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue