Documentation ¶
Index ¶
- Constants
- Variables
- func Index(i int) string
- type TowerAchieveVector_float64
- func (es *TowerAchieveVector_float64) Add(e towerachieve.TowerAchieve, v float64)
- func (es *TowerAchieveVector_float64) Dec(e towerachieve.TowerAchieve)
- func (es TowerAchieveVector_float64) Get(e towerachieve.TowerAchieve) float64
- func (es *TowerAchieveVector_float64) Inc(e towerachieve.TowerAchieve)
- func (es TowerAchieveVector_float64) Iter(fn func(i towerachieve.TowerAchieve, v float64) bool) bool
- func (es *TowerAchieveVector_float64) SetIfGt(e towerachieve.TowerAchieve, v float64)
- func (es TowerAchieveVector_float64) String() string
- func (es *TowerAchieveVector_float64) ToWeb(w http.ResponseWriter, r *http.Request) error
- func (es TowerAchieveVector_float64) VectorAdd(arg TowerAchieveVector_float64) TowerAchieveVector_float64
- func (es TowerAchieveVector_float64) VectorSub(arg TowerAchieveVector_float64) TowerAchieveVector_float64
Constants ¶
View Source
const ( HTML_tableheader = `<tr> <th>Name</th> <th>Value</th> </tr>` HTML_row = `<tr> <td>{{TowerAchieveIndex $i}}</td> <td>{{$v}}</td> </tr> ` )
Variables ¶
View Source
var IndexFn = template.FuncMap{ "TowerAchieveIndex": Index, }
Functions ¶
Types ¶
type TowerAchieveVector_float64 ¶
type TowerAchieveVector_float64 [towerachieve.TowerAchieve_Count]float64
func (*TowerAchieveVector_float64) Add ¶
func (es *TowerAchieveVector_float64) Add(e towerachieve.TowerAchieve, v float64)
func (*TowerAchieveVector_float64) Dec ¶
func (es *TowerAchieveVector_float64) Dec(e towerachieve.TowerAchieve)
func (TowerAchieveVector_float64) Get ¶
func (es TowerAchieveVector_float64) Get(e towerachieve.TowerAchieve) float64
func (*TowerAchieveVector_float64) Inc ¶
func (es *TowerAchieveVector_float64) Inc(e towerachieve.TowerAchieve)
func (TowerAchieveVector_float64) Iter ¶
func (es TowerAchieveVector_float64) Iter(fn func(i towerachieve.TowerAchieve, v float64) bool) bool
Iter return true if iter stop, return false if iter all fn return true to stop iter
func (*TowerAchieveVector_float64) SetIfGt ¶
func (es *TowerAchieveVector_float64) SetIfGt(e towerachieve.TowerAchieve, v float64)
func (TowerAchieveVector_float64) String ¶
func (es TowerAchieveVector_float64) String() string
func (*TowerAchieveVector_float64) ToWeb ¶
func (es *TowerAchieveVector_float64) ToWeb(w http.ResponseWriter, r *http.Request) error
func (TowerAchieveVector_float64) VectorAdd ¶
func (es TowerAchieveVector_float64) VectorAdd(arg TowerAchieveVector_float64) TowerAchieveVector_float64
VectorAdd add element to element
func (TowerAchieveVector_float64) VectorSub ¶
func (es TowerAchieveVector_float64) VectorSub(arg TowerAchieveVector_float64) TowerAchieveVector_float64
VectorSub sub element to element
Click to show internal directories.
Click to hide internal directories.