Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neilkuan/learn-golang
https://github.com/neilkuan/learn-golang
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/neilkuan/learn-golang
- Owner: neilkuan
- Created: 2021-04-27T11:04:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T07:10:06.000Z (over 3 years ago)
- Last Synced: 2024-10-07T10:10:51.323Z (30 days ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This repo just for learn golang for beginner learn-golang
```bash
# test.go
# `package`
# go run: cannot run non-main package
# func format need complete with "ansi c" .go run test.go
---
Hello world
```if else to check object Type.
```go
package mainimport (
"fmt"
"math/rand"
"reflect"
)func main() {
hell := rand.Intn(1)
hellt := reflect.TypeOf(hell).Kind()
fmt.Println(hellt)
if hellt == reflect.Int {
fmt.Println("hell is: ", reflect.Int)
}
}
```