0 votes
in GoLang by
What is a string literal in Go programming?

1 Answer

0 votes
by

A string literals specifies a string constant that is obtained from concatenating a sequence of characters.

There are two types of string literals:

  • Raw string literals: The value of raw string literals are character sequence between back quotes ". Its value is specified as a string literal that composed of the uninterrupted character between quotes.
  • Interpreted string literals: It is shown between double quotes " ". The value of the literal is specified as text between the double quotes which may not contain newlines.

Related questions

0 votes
asked Aug 19, 2022 in GoLang by john ganales
0 votes
asked Aug 19, 2022 in GoLang by john ganales
...