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