Skip to content

Instantly share code, notes, and snippets.

View super1-chen's full-sized avatar
🏠
Working from home

Albert_Chen super1-chen

🏠
Working from home
  • Fxdata.Inc HANGZHOU
  • Hangzhou Zhejiang PRC
View GitHub Profile
@super1-chen
super1-chen / github how to sync from fork repo.md
Created May 28, 2019 06:39
my note of how to sync fork repo

Usually in git there is only origin and local, in git hub as we have origin and upstream, we can sync by follow below commands.

$ git remote -v 

$ git remote add upstream git@remoteURL.github.com

$ git remote -v 

$ git fetch upstream
@super1-chen
super1-chen / golang variable.md
Created May 15, 2019 15:06
Snippet from A Tour of Go

Variables

The var statement declares a list of variables; as in function argument lists, the type is last. A var statement can be at package or function level. We see both in this example.

variables.go

package main