Golang
Golang
Imports
fmt
use fmt.Println("Hello World")
to print stuff
reflect
use to inspect variable types
structs
structs as a type
Structs are data objects containing any types of data including other structs. There is no limit in nesting structs. Golang is not object oriented but has some feature of object oriented programming. Example:
Starship
is the name of the struct similiar to a class in object oriented programming languages
Interfaces
Method Sets
Last updated