Skip to content

Commit be22b30

Browse files
xSavitarjulienschmidt
authored andcommitted
Added -u flag for go get ... command (#665)
* With the `-u` flag, this will allows the user's network to look for updates to the existing package. * Typo fixes.
1 parent 1548d61 commit be22b30

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ A MySQL-Driver for Go's [database/sql](https://golang.org/pkg/database/sql/) pac
4747
## Installation
4848
Simple install the package to your [$GOPATH](https://github.com/golang/go/wiki/GOPATH "GOPATH") with the [go tool](https://golang.org/cmd/go/ "go command") from shell:
4949
```bash
50-
$ go get github.com/go-sql-driver/mysql
50+
$ go get -u github.com/go-sql-driver/mysql
5151
```
5252
Make sure [Git is installed](https://git-scm.com/downloads) on your machine and in your system's `PATH`.
5353

@@ -344,9 +344,9 @@ Any other parameters are interpreted as system variables:
344344
* `<string_var>=%27<value>%27`: `SET <string_var>='<value>'`
345345

346346
Rules:
347-
* The values for string variables must be quoted with '
347+
* The values for string variables must be quoted with `'`.
348348
* The values must also be [url.QueryEscape](http://golang.org/pkg/net/url/#QueryEscape)'ed!
349-
(which implies values of string variables must be wrapped with `%27`)
349+
(which implies values of string variables must be wrapped with `%27`).
350350

351351
Examples:
352352
* `autocommit=1`: `SET autocommit=1`
@@ -426,7 +426,7 @@ See the [godoc of Go-MySQL-Driver](https://godoc.org/github.com/go-sql-driver/my
426426

427427

428428
### `time.Time` support
429-
The default internal output type of MySQL `DATE` and `DATETIME` values is `[]byte` which allows you to scan the value into a `[]byte`, `string` or `sql.RawBytes` variable in your programm.
429+
The default internal output type of MySQL `DATE` and `DATETIME` values is `[]byte` which allows you to scan the value into a `[]byte`, `string` or `sql.RawBytes` variable in your program.
430430

431431
However, many want to scan MySQL `DATE` and `DATETIME` values into `time.Time` variables, which is the logical opposite in Go to `DATE` and `DATETIME` in MySQL. You can do that by changing the internal output type from `[]byte` to `time.Time` with the DSN parameter `parseTime=true`. You can set the default [`time.Time` location](https://golang.org/pkg/time/#Location) with the `loc` DSN parameter.
432432

@@ -466,13 +466,13 @@ Mozilla summarizes the license scope as follows:
466466
467467

468468
That means:
469-
* You can **use** the **unchanged** source code both in private and commercially
470-
* When distributing, you **must publish** the source code of any **changed files** licensed under the MPL 2.0 under a) the MPL 2.0 itself or b) a compatible license (e.g. GPL 3.0 or Apache License 2.0)
471-
* You **needn't publish** the source code of your library as long as the files licensed under the MPL 2.0 are **unchanged**
469+
* You can **use** the **unchanged** source code both in private and commercially.
470+
* When distributing, you **must publish** the source code of any **changed files** licensed under the MPL 2.0 under a) the MPL 2.0 itself or b) a compatible license (e.g. GPL 3.0 or Apache License 2.0).
471+
* You **needn't publish** the source code of your library as long as the files licensed under the MPL 2.0 are **unchanged**.
472472

473473
Please read the [MPL 2.0 FAQ](https://www.mozilla.org/en-US/MPL/2.0/FAQ/) if you have further questions regarding the license.
474474

475-
You can read the full terms here: [LICENSE](https://raw.github.com/go-sql-driver/mysql/master/LICENSE)
475+
You can read the full terms here: [LICENSE](https://raw.github.com/go-sql-driver/mysql/master/LICENSE).
476476

477477
![Go Gopher and MySQL Dolphin](https://raw.github.com/wiki/go-sql-driver/mysql/go-mysql-driver_m.jpg "Golang Gopher transporting the MySQL Dolphin in a wheelbarrow")
478478

0 commit comments

Comments
 (0)