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
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