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