I have this struct :
const (
paragraph_hypothesis = 1<<iota
paragraph_attachment = 1<<iota
paragraph_menu = 1<<iota
)
type Paragraph struct {
Type int // paragraph_hypothesis or paragraph_attachment or paragraph_menu
}
I want to display my paragraphs in …
How can I look up the value of a map by using a variable key without iterating?
So one can lookup a constant key on variable map $x with $x.key1, but is it possible to do amap.$key?
What is the namespace of variables inside html/text templates? I thought that a variable $x can change value inside a template, but this example shows me that I cannot.
I failed when I tried to group tournaments according year …