Go :验证使用数字常量时检测到溢出(附完整源码)

Go :验证使用数字常量时检测到溢出

package main
import "unsafe"
type I interface{
   }
const (
	// assume all types behave similarly to int8/uint8
	Int8   int8  = 101
	Minus1 int8  = -<

你可能感兴趣的:(go语言完整教程,golang,前端)