From b8a602ce564626c5d8438293687cdc4cadce3274 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Thu, 6 Aug 2015 16:49:27 +0200 Subject: [PATCH] bind: minimal test of basic/named types Change-Id: Ia268426cb8bd56a3884b4e970969002d7b849156 --- _examples/hi/hi.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/_examples/hi/hi.go b/_examples/hi/hi.go index b3a35d0..a89cd2d 100644 --- a/_examples/hi/hi.go +++ b/_examples/hi/hi.go @@ -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