https://github.com/imotd/go-basic
Learn Go
https://github.com/imotd/go-basic
golang
Last synced: 2 months ago
JSON representation
Learn Go
- Host: GitHub
- URL: https://github.com/imotd/go-basic
- Owner: imotD
- Created: 2022-02-04T12:04:01.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-04T20:08:26.000Z (almost 4 years ago)
- Last Synced: 2025-02-08T12:46:36.828Z (11 months ago)
- Topics: golang
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learn Go
## Key
- go run - code menjalankan code
- go build - ngebuild code ex:.exe
- source ~/.profile
- package main (executable)
- library non main
- function dengan huruf Kapital = Akses Public
- sprintf - mengembalikan string
-%s - string
-%d - angka
- println - mencetak sebuah string
- import - memanggil standar library golang, pacakge custom(sendiri),pihak ke-3
- funt main() - method khusu di package main
### Note