String

A string type represents the set of string values. A string value is a sequence of bytes.

The length of a string (its size in bytes) can be found out using the built-in len() function. The bytes of a string can be accessed by integer indexes from 0 to len(s) - 1.


var name string = "Carlos"
                        
string_type.go