https://github.com/waleedsamy/letsgo
let's go
https://github.com/waleedsamy/letsgo
golang tutorial
Last synced: 3 months ago
JSON representation
let's go
- Host: GitHub
- URL: https://github.com/waleedsamy/letsgo
- Owner: waleedsamy
- Created: 2016-08-30T07:36:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T11:19:05.000Z (about 5 years ago)
- Last Synced: 2025-04-18T16:18:48.625Z (12 months ago)
- Topics: golang, tutorial
- Language: Go
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# let's go
GO hello world based on https://golang.org/doc/code.html
Note: user in github url mean your username(I use mine).
### steps
```bash
# update your ~/.bashrc
export GOPATH=$HOME/code/go
export PATH=$PATH:$GOPATH/bin
# now you create a project hello
mkdir -p $GOPATH/src/github.com/user/letsgo
# start write your go code
cd $GOPATH/src/github.com/user/letsgo && touch hello.go
```
### build, install and run
```bash
go install
go run . -config.file let.yaml
curl http://localhost:8080/baz
```
### push to github
```bash
cd $GOPATH/src/github.com/user/letsgo
git init
git add --all && git commit -am "Hello GO"
git remote add origin git@github.com:user/letsgo.git
git push origin master
```