Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the purpose of the identifier of Go

Shulou Source: shulou.com Published: 2022-06-01 02:38:07 11月14日 Update

This article mainly explains "what is the role of Go identifiers". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what is the role of Go identifiers"!

Identifier

Identifiers are used to name variables, types, and other program entities. An identifier is actually a sequence of one or more letters (AbeliZ and axiz) numbers (0,9) and underscores _, but the first character must be a letter or underscore, not a number.

The following are valid identifiers:

Mahesh kumar abc move_name a_123myname50 _ temp j a23b9 retVal

The following are invalid identifiers:

1ab (starts with a number)

Case (keyword of Go language)

Aaccounb (operator is not allowed)

What is gogo is the abbreviation of golang? golang is a static strongly typed, compiled, concurrent and garbage-collected programming language developed by Google. Its syntax is similar to C language, but it does not include functions such as enumeration, exception handling, inheritance, generics, assertions, virtual functions and so on.

At this point, I believe you have a deeper understanding of "what is the role of Go identifiers". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Identity identifier function number language underscore content function letter actual type learning practical deeper effective similar key keyword interest function Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information NVidia macOS MySQL Linux