foo.gno
0.31 Kb ยท 19 lines
1package tests_foo
2
3import (
4 "gno.land/r/demo/tests"
5)
6
7// for testing gno.land/r/demo/tests/interfaces.go
8
9type FooStringer struct {
10 FieldA string
11}
12
13func (fs *FooStringer) String() string {
14 return "&FooStringer{" + fs.FieldA + "}"
15}
16
17func AddFooStringer(fa string) {
18 tests.AddStringer(cross, &FooStringer{fa})
19}