2015-08-07 07:23:09 +00:00
|
|
|
// Copyright 2015 The go-python 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 named
|
|
|
|
|
|
|
|
type Float float32
|
|
|
|
|
|
|
|
func (f Float) Value() float32 { return float32(f) }
|
|
|
|
|
|
|
|
type X float32
|
|
|
|
type XX X
|
|
|
|
type XXX XX
|
|
|
|
type XXXX XXX
|
2015-08-11 15:47:23 +00:00
|
|
|
|
|
|
|
func (x X) Value() float32 { return float32(x) }
|
|
|
|
func (x XX) Value() float32 { return float32(x) }
|
|
|
|
func (x XXX) Value() float32 { return float32(x) }
|
|
|
|
func (x XXXX) Value() float32 { return float32(x) }
|
2015-08-11 16:55:57 +00:00
|
|
|
|
|
|
|
type Str string
|
|
|
|
|
|
|
|
func (s Str) Value() string { return string(s) }
|
|
|
|
|
|
|
|
type Slice []float64
|
|
|
|
|
|
|
|
func (s Slice) At(i int) float64 { return s[i] }
|
|
|
|
|
|
|
|
type Array [2]float64
|
|
|
|
|
|
|
|
func (a Array) At(i int) float64 { return a[i] }
|