Replace the spellings of github/Github with GitHub

This commit is contained in:
TAKAHASHI Shuuji
2019-06-17 06:52:04 +09:00
parent f939c7e6cb
commit 02bf9fc253
50 changed files with 3675 additions and 3675 deletions

View File

@@ -95,13 +95,13 @@ To compile this application, you need to switch to the application directory, wh
## Install remote packages
Go has a tool for installing remote packages, which is a command called `go get`. It supports most open source communities, including Github, Google Code, BitBucket, and Launchpad.
Go has a tool for installing remote packages, which is a command called `go get`. It supports most open source communities, including GitHub, Google Code, BitBucket, and Launchpad.
go get github.com/astaxie/beedb
You can use `go get -u …` to update your remote packages and it will automatically install all the dependent packages as well.
This tool will use different version control tools for different open source platforms. For example, `git` for Github and `hg` for Google Code. Therefore, you have to install these version control tools before you use `go get`.
This tool will use different version control tools for different open source platforms. For example, `git` for GitHub and `hg` for Google Code. Therefore, you have to install these version control tools before you use `go get`.
After executing the above commands, the directory structure should look like following.

View File

@@ -55,10 +55,10 @@ We usually use `gofmt -w` instead of `go fmt`. The latter will not rewrite your
## go get
This command is for getting remote packages. So far, it supports BitBucket, Github, Google Code and Launchpad. There are actually two things that happen after we execute this command. The first thing is that Go downloads the source code, then executes `go install`. Before you use this command, make sure you have installed all of the related tools.
This command is for getting remote packages. So far, it supports BitBucket, GitHub, Google Code and Launchpad. There are actually two things that happen after we execute this command. The first thing is that Go downloads the source code, then executes `go install`. Before you use this command, make sure you have installed all of the related tools.
BitBucket (Mercurial Git)
Github (git)
GitHub (git)
Google Code (Git, Mercurial, Subversion)
Launchpad (Bazaar)

View File

@@ -23,7 +23,7 @@ To mitigate all the problems that Google faced with current tools, they wrote a
Go was designed with concurrency in mind, please note that parallelism != concurrency, there is an [amazing post](https://blog.golang.org/concurrency-is-not-parallelism) by Rob Pike on the [golang blog](https://blog.golang.org/), you will find it there, it is worth a read.
Another very important change that is the concept of `GOPATH`. Gone are the days when you had to create a folder called `code` and then create workspaces for eclipse and what not. Now you have to keep one folder tree for go code which will be updated by the package manager automatically. It is also recommended to create folders with either a custom domain or the github domain, for example I created a task manager using golang so I created a set of folders
Another very important change that is the concept of `GOPATH`. Gone are the days when you had to create a folder called `code` and then create workspaces for eclipse and what not. Now you have to keep one folder tree for go code which will be updated by the package manager automatically. It is also recommended to create folders with either a custom domain or the GitHub domain, for example I created a task manager using golang so I created a set of folders
`~/go/src/github.com/thewhitetulip/Tasks`
**Note:** In *nix systems `~` stands for home directory, which is the windows equivalent of `C:\\Users\\username`.

View File

@@ -4,7 +4,7 @@ When our web application is finally production ready, what are the steps necessa
## Daemons
Currently, Go programs cannot be run as daemon processes (for additional information, see the open issue on github [here](https://github.com/golang/go/issues/227)). It's difficult to fork existing threads in Go because there is no way of ensuring a consistent state in all threads that have been used.
Currently, Go programs cannot be run as daemon processes (for additional information, see the open issue on GitHub [here](https://github.com/golang/go/issues/227)). It's difficult to fork existing threads in Go because there is no way of ensuring a consistent state in all threads that have been used.
We can, however, see many attempts at implementing daemons online, such as in the two following ways;

View File

@@ -56,7 +56,7 @@ OAuth and OAuth 2 are currently two of the most popular authentication methods.
github.com/bradrydzewski/go.auth
The code below demonstrates how to use this library to implement OAuth authentication in Beego using our Github credentials:
The code below demonstrates how to use this library to implement OAuth authentication in Beego using our GitHub credentials:
1. Let's add some routes
@@ -147,7 +147,7 @@ After clicking "Authorize app", the following screen appears:
![](images/14.4.github3.png?raw=true)
Figure 14.6 authorized Github information gets displayed after the login page
Figure 14.6 authorized GitHub information gets displayed after the login page
## Custom authentication