Skip to content

Commit

Permalink
Update README.md and go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Oct 1, 2021
1 parent e845d2d commit 868e4cc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.16
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: 1.17
id: go

- name: Check out code into the Go module directory
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ go:
# - 1.12.x
# - 1.13.x
# - 1.14.x
- 1.15.x
# - 1.15.x
- 1.17.x
# - tip

install:
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
murmur
======
# murmur

[![Build Status](https://github.com/vcaesar/murmur/workflows/Go/badge.svg)](https://github.com/vcaesar/murmur/commits/master)
[![CircleCI Status](https://circleci.com/gh/vcaesar/murmur.svg?style=shield)](https://circleci.com/gh/vcaesar/murmur)
[![codecov](https://codecov.io/gh/vcaesar/murmur/branch/master/graph/badge.svg)](https://codecov.io/gh/vcaesar/murmur)
[![Build Status](https://travis-ci.org/vcaesar/murmur.svg)](https://travis-ci.org/vcaesar/murmur)
Expand Down Expand Up @@ -27,13 +28,13 @@ import (
)

func main() {
var str = "github.com"
var str = "github.com/vcaesar/murmur"

sum32 := murmur.Sum32(str)
log.Println("hash32...", sum32)
log.Println("hash32: ", sum32)

sum32 = murmur.Sum32(str, 0)
log.Println("hash32...", hash32)
log.Println("hash32: ", hash32)

hash32 := murmur.Murmur3([]byte(str))
log.Println("hash32...", hash32)
Expand All @@ -43,4 +44,4 @@ func main() {
}
```

Based on [MurmurHash](http://en.wikipedia.org/wiki/MurmurHash), thanks murmur3.
Based on [MurmurHash](http://en.wikipedia.org/wiki/MurmurHash), thanks for murmur3.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version: 2
jobs:
build:
docker:
- image: golang:1.16.5
- image: golang:1.17.1
working_directory: /gopath/src/github.com/vcaesar/murmur
steps:
- checkout
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/vcaesar/murmur

go 1.13
go 1.17

require github.com/vcaesar/tt v0.11.0
require github.com/vcaesar/tt v0.20.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/vcaesar/tt v0.11.0 h1:obQecjgbnAxxC6OYGY6yDvhGRW2PR5wD8Ma2uJH3WGA=
github.com/vcaesar/tt v0.11.0/go.mod h1:GHPxQYhn+7OgKakRusH7KJ0M5MhywoeLb8Fcffs/Gtg=
github.com/vcaesar/tt v0.20.0 h1:9t2Ycb9RNHcP0WgQgIaRKJBB+FrRdejuaL6uWIHuoBA=
github.com/vcaesar/tt v0.20.0/go.mod h1:GHPxQYhn+7OgKakRusH7KJ0M5MhywoeLb8Fcffs/Gtg=

0 comments on commit 868e4cc

Please sign in to comment.