Exemplo n.º 1
0
func (this *Context) GetBool(key string, defaultValue bool) bool {
	var value = this.GetValue(key, defaultValue)
	return convert.ConvertToBool(value)
}
Exemplo n.º 2
0
func (this *Context) GetBoolWithContext(contextName, key string, defaultValue bool) bool {
	var value, _ = this.GetValueWithContext(contextName, key, defaultValue)
	return convert.ConvertToBool(value)
}