type assertion

(1)

cannot use variable (type interface {}) as type int in assignment: need type assertion

在使用 golang gin 时,通过 context get 获取的值在赋值给一个整型变量时,报错 > cannot use variable (type interface {}) as type int in assignmen