bind: minimal test of basic/named types

Change-Id: Ia268426cb8bd56a3884b4e970969002d7b849156
This commit is contained in:
Sebastien Binet 2015-08-06 16:49:27 +02:00
parent 59c56e2417
commit b8a602ce56
1 changed files with 9 additions and 0 deletions

View File

@ -119,3 +119,12 @@ func NewCouple(p1, p2 Person) Couple {
func (c *Couple) String() string {
return fmt.Sprintf("hi.Couple{P1=%v, P2=%v}", c.P1, c.P2)
}
// Float is a kind of float32
type Float float32
// Floats is a slice of floats
type Floats []Float
// Eval evals float64
type Eval func(f float64) float64