# Primitivos

V tem menos tipos primitivos que Go.

## Tipos básicos

* bool pode ser `true` ou `false`
* string
* inteiro tipo `int`
* float tipo `float`
* rune (Unicode string)

## Tipos de compostos

* arrays `[]`
* map `{}`
* struct

## Inteiro

O número inteiro é subclassificado em `signed` e `unsigned`. `signed` significa positivo ou negativo e não `unsigned` significa apenas positivo.

### Signed Integer

| Tipo   |  Tamanho |             Range |
| ------ | :------: | ----------------: |
| int8   |  8 bits  |     -128 to 27 -1 |
| int16  |  16 bits |   -215 to 215 - 1 |
| int    |  32 bits |   -231 to 231 - 1 |
| int64  |  64 bits |   -263 to 263 - 1 |
| int128 | 128 bits | -2127 to 2127 - 1 |

### Unsigned Integer

| Tipo |  Tamanho |         Range |
| ---- | :------: | ------------: |
| byte |  8 bits  |    0 to 27 -1 |
| u16  |  16 bits |  0 to 215 - 1 |
| u32  |  32 bits |  0 to 231 - 1 |
| u64  |  64 bits |  0 to 263 - 1 |
| u128 | 128 bits | 0 to 2127 - 1 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://v-community.gitbook.io/v-by-example/pt-br/examples/section_1/primitives.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
