Пример #1
0
func (this *Context) GetBool(key string, defaultValue bool) bool {
	var value = this.GetValue(key, defaultValue)
	return convert.ConvertToBool(value)
}
Пример #2
0
func (this *Context) GetBoolWithContext(contextName, key string, defaultValue bool) bool {
	var value, _ = this.GetValueWithContext(contextName, key, defaultValue)
	return convert.ConvertToBool(value)
}