예제 #1
0
파일: context.go 프로젝트: nanjishidu/going
func (this *Context) GetInt32(key string, defaultValue int32) int32 {
	var value = this.GetValue(key, defaultValue)
	return convert.ConvertToInt32(value)
}
예제 #2
0
파일: context.go 프로젝트: nanjishidu/going
func (this *Context) GetInt32WithContext(contextName, key string, defaultValue int32) int32 {
	var value, _ = this.GetValueWithContext(contextName, key, defaultValue)
	return convert.ConvertToInt32(value)
}