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