Brother even go language training Tsinghua Yin Cheng take you to the actual go case (+) Go value

Source: Internet
Author: User

Brother even go language training Course System Design framework includes the basic language of the blockchain go language, blockchain backend technology system, blockchain public chain, blockchain distributed application development and other content, as well as to the final interview guidance and project combat. The course was carefully built by Tsinghua University's Microsoft Google Teacher team, which lasted half a year and developed together.

Brother even go language training Tsinghua Yin Cheng take you to the actual go case (+) Go value

Go value

Go has a number of data types, including string type, Integer, float, Boolean, and so on, here are some basic examples.

Packagemain

Import "FMT"

Funcmain () {

Strings can be connected using "+"

Fmt. Println ("Go" + "lang")

Integral and floating-point types

Fmt. Println ("1+1=", +)

Fmt. Println ("7.0/3.0=", 7.0/3.0)

Several operators of Boolean type

Fmt. Println (True&&false)

Fmt. Println (true| | False

Fmt. Println (!true)

}

The output result is

Golang

1+1=2

7.0/3.0=2.3333333333333335

False

True

False

Related Article

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.