Skip to content

Commit bdd633f

Browse files
committed
license & go.mod
1 parent 477dde7 commit bdd633f

4 files changed

Lines changed: 37 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
go.sum

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Aleksey Lin <aleksey@incsw.in> (https://incsw.in)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
2+
[![Go Report Card](https://goreportcard.com/badge/github.com/IncSW/go-51degrees?style=flat-square)](https://goreportcard.com/report/github.com/IncSW/go-51degrees)
3+
14
Device Detection based on 51Degrees Trie. Golang version of [51Degrees/Device-Detection](https://github.com/51Degrees/Device-Detection) without cgo.
25

36
## Installation
@@ -21,22 +24,22 @@ fmt.Println(device.GetValue("BrowserName"), device.GetValue("BrowserVersion"))
2124

2225
## Performance
2326

24-
### Go 1.13.1, Debian 9.1, i7-7700
27+
### Go 1.14.2, Debian 9.1, i7-7700
2528

2629
fixed ua: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0`
2730

2831
```
29-
go/fixed-8 1279998 927 ns/op 0 B/op 0 allocs/op
32+
go/fixed-8 1291940 927 ns/op 0 B/op 0 allocs/op
3033
cgo/fixed-8 533149 2214 ns/op 224 B/op 19 allocs/op
3134
32-
go/fixed-parallel-8 6197949 195 ns/op 0 B/op 0 allocs/op
33-
cgo/fixed-parallel-8 2119233 566 ns/op 224 B/op 19 allocs/op
35+
go/fixed-parallel-8 6384787 189 ns/op 0 B/op 0 allocs/op
36+
cgo/fixed-parallel-8 2139506 554 ns/op 224 B/op 19 allocs/op
3437
3538
go/range-8 422196 2720 ns/op 0 B/op 0 allocs/op
36-
cgo/range-8 400407 2989 ns/op 235 B/op 18 allocs/op
39+
cgo/range-8 404926 2964 ns/op 235 B/op 18 allocs/op
3740
38-
go/range-parallel-8 2709638 437 ns/op 0 B/op 0 allocs/op
39-
cgo/range-parallel-8 1702524 681 ns/op 235 B/op 18 allocs/op
41+
go/range-parallel-8 2738305 430 ns/op 0 B/op 0 allocs/op
42+
cgo/range-parallel-8 1810068 657 ns/op 235 B/op 18 allocs/op
4043
```
4144

4245
## License

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/IncSW/go-51degrees
2+
3+
go 1.14
4+
5+
require github.com/stretchr/testify v1.5.1

0 commit comments

Comments
 (0)