Go language Learning 17-Basic data types

Source: Internet
Author: User

description TD class= "Xl66" style= "border-left:none; width:115pt; Text-align:center; "Width=" 153 ">
go data type
byte   -
int int or Long   32-bit or 64-bit depends on platform
int8 -2^7 to 2^7-1
int16 -2^15 to 2^15-1
int32 -2^31 to 2^31-1
int64
rune   -
uint   - 32-bit or 64-bit depending on platform
uint8   - 0 to 2^8-1
uint16 0 to 2^16-1
uint32   - 0 to 2^32-1 equals rune
float32
float64
bool
string
[]t LIST<T>
Map[k]v Map<k.v>  

Go language Learning 17-Basic data types

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.