Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tcnksm committed Apr 6, 2015
1 parent 9bc0188 commit b0d8b26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ githubTag := &latest.GithubTag{
Repository: "reponame",
}

res, _ := latest.Check(githubTag,"0.1.0")
res, _ := latest.Check(githubTag, "0.1.0")
if res.Outdated {
fmt.Printf("0.1.0 is not latest, you should upgrade to %s", res.Current)
}
```

`go-latest` uses [Semantic Versoning](http://semver.org/) to compare versions. If tagging name strategy on GitHub may is different from it, you need to fix it by defining `FixVersionStrFunc`.
`go-latest` uses [Semantic Versoning](http://semver.org/) to compare versions. If tagging name strategy on GitHub is different from it, you need to fix it by defining `FixVersionStrFunc`.

### HTML meta tag

Expand Down Expand Up @@ -97,13 +97,13 @@ json := &latest.JSON{
URL: "http://example.com/json",
}

res, _ := latest.Check("0.1.0", json)
res, _ := latest.Check(json, "0.1.0")
if res.Outdated {
fmt.Printf("0.1.0 is not latest, %s, upgrade to %s", res.Meta.Message, res.Current)
}
```

You can use your own json schema by defining `JSONReceiver` interface. See more details in document at [https://godoc.org/github.com/tcnksm/go-latest](https://godoc.org/github.com/tcnksm/go-latest).
You can use your own json schema by defining `JSONReceive` interface. See more details in document at [https://godoc.org/github.com/tcnksm/go-latest](https://godoc.org/github.com/tcnksm/go-latest).

## Version comparing

Expand Down

0 comments on commit b0d8b26

Please sign in to comment.