본문 바로가기

Web Development/Back-end

[형변환] Golang ([]byte -> big.Int)

func MakeByteToBigint(data []byte) *big.Int{
	result := new(big.Int)
	result.SetBytes(data)
    
	fmt.Println("바이트슬라이스 -> 빅인트 :", result)
	return result
}