Go Data Types


String

A string is an immutable container of uint8 bytes.

Like other container types, string data can be operated on using:

They are meant to represent text encoded in UTF-8, but not every byte is guaranteed to be valid Unicode. There are only a few instances where strings are implicitly encoded:

In these cases, all invalid Unicode bytes are converted to U+FFFD (the replacement character).


Bool


Numeric Types

byte is an alias to uint8, and rune is an alias to int32.


Pointer


Struct


Function


Container Types


Channel


Interface


CategoryRicottone

Go/DataTypes (last edited 2023-01-08 06:00:14 by DominicRicottone)