You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Task | Code Example | Reference |
---|
Creating a new go project | mkdir myproject cd my project go mod init myproject | link |
Creating an instance of a struct | type Student struct {
Name string
Age int
}
b := Student{ Name: "Bob", }
| link |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|