Boolean values: Difference between revisions

Line 864:
The template package however, uses a different rule for <tt>if</tt> actions. There, it is testing if a "pipeline" is "empty" where the empty values are false, 0, any nil pointer or interface value, and any array, slice, map, or string of length zero.
 
<lang go>
package main
 
Line 890:
bolStr, _ := strconv.ParseBool(str1)
fmt.Println("After :", reflect.TypeOf(bolStr)) // prt After : bool
}</lang>
}
 
 
</lang>
 
=={{header|Groovy}}==
Anonymous user