// get parameter as int
550527
func (f *linkFrame) GetParamInt(k string) (i int64, err error) {
  v, ok := f.param[k]
  if ok {
    switch v.(type) {
    case int64:
      i = v.(int64)
      break
    default:
      err = errors.New("param value "+k+" not int")
    }
  } else {
    err = errors.New("params don't have "+k)
  }
  return
}
1270114
func (c *client) Int(key string, fallback int) int {
	if i, err := strconv.Atoi(c.Getenv(key)); err == nil {
		return i
	}

	return fallback
}
1191711
func (c Config) GetInt(key string) (int64, error) {
	var (
		iout int64
		val  interface{}
		ok   bool
	)

	if val, ok = c[key]; !ok {
		return iout, ErrConfigNotFound
	}

	if iout, ok = val.(int64); !ok {
		return iout, ErrNotAnInt
	}

	return iout, nil
}
951040
func (m *Manager) GetInt32(key string) int32 {
	return cast.ToInt32(m.Get(key))
}
421349
func (v Int32) Get(deflt int32) int32 {
	if !v.Defined {
		return deflt
	}
	return v.V
}
247814
func (c *Config) GetInt(s string) int {
	return c.config.GetInt(s)
}
731451
func (m Match) Integer(name string) (int, error) {
	str, err := m.Parameter(NewParameterWithType(name, "integer"))
	if err != nil {
		return 0, err
	}

	return strconv.Atoi(str)
}
928033
func (i *Issue) GetNumber() int {
	if i == nil || i.Number == nil {
		return 0
	}
	return *i.Number
}
1358843
func (e *Entity) GetInt32(name string) (int32, bool) {
	x, ok := e.Get(name).(int32)
	return x, ok
}
283605
func (p *Params) Int32(key string) (int32, error) {
	v, err := strconv.ParseInt(p.Get(key), 10, 32)
	return int32(v), err
}
175060
func (i Int) Get() (int, error) {
	if !i.Present() {
		var zero int
		return zero, errors.New("value not present")
	}
	return *i.value, nil
}
1369026
func (context *BaseContext) GetInt(
	key string, defaultValue ...int) int {
	if value, ok := context.userData[key]; ok {
		if value, ok := value.(int); ok {
			return value
		}
	}
	if len(defaultValue) > 0 {
		return defaultValue[0]
	}
	return 0
}
366727
func (c *Counter) Get() int {
	c.Lock()
	defer c.Unlock()
	return c.count
}
526920
func (p urlParams) Get(key string) (param string) {

	for i := 0; i < len(p); i++ {
		if p[i].key == key {
			param = p[i].value
			return
		}
	}

	return
}
252514
func (p Pointers) Get(i int) bool {
	return p[uint(i)>>ptrShift]&(1<<(uint(i)&ptrModMask)) != 0
}
1340428
func (c *ConfigLookup) GetInt(key string) int {
	value, ok := c.Lookup(key)
	if !ok {
		return 0
	}
	return cast.ToInt(value)
}
603056
func (d Data) GetInt(key string) int {
	if !d.KeyExists(key) || len(d.Values[key]) == 0 {
		return 0
	}
	str := d.Get(key)
	if result, err := strconv.Atoi(str); err != nil {
		panic(err)
	} else {
		return result
	}
}