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