¿Que significa “package main”? Package = Workspace
graph TD
subgraph Package Main
main.go
support.go
helper.go
end
Hay dos tipos de paquetes:
En GO hay dos estructuras principales:
| Value Types | for value types we need use pointers to change these things in a function | Reference Types | in this cases, not use pointers |
|---|---|---|---|
| int | slices | ||
| float | maps | ||
| srting | channels | ||
| bool | pointers | ||
| structs | functions |
Pointer in the Struct
Maps
Interfaces