2
0
mirror of synced 2025-02-24 15:28:28 +00:00
mobile/bind/testpkg/secondpkg/secondpkg.go

34 lines
536 B
Go
Raw Normal View History

// 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
}