Exemple #1
0
func (this *Context) GetInt32(key string, defaultValue int32) int32 {
	var value = this.GetValue(key, defaultValue)
	return convert.ConvertToInt32(value)
}
Exemple #2
0
func (this *Context) GetInt32WithContext(contextName, key string, defaultValue int32) int32 {
	var value, _ = this.GetValueWithContext(contextName, key, defaultValue)
	return convert.ConvertToInt32(value)
}