Skip to content

Commit b486b63

Browse files
committed
Renamed package to useragent
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
1 parent f3b76aa commit b486b63

File tree

10 files changed

+53
-53
lines changed

10 files changed

+53
-53
lines changed

CHANGELOG.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,66 @@
22

33
## 0.6.0
44

5-
- Added information on the model of mobile devices. See [746647ad73b5](https://github.com/mssola/user_agent/commit/746647ad73b5ad8648175bbd07319c0a8ac559c6).
6-
- Added support for PhantomJS. See [6b5e6f6ebfa8](https://github.com/mssola/user_agent/commit/6b5e6f6ebfa87464ccdb42bac5448cbf46ce1ba1).
5+
- Added information on the model of mobile devices. See [746647ad73b5](https://github.com/mssola/useragent/commit/746647ad73b5ad8648175bbd07319c0a8ac559c6).
6+
- Added support for PhantomJS. See [6b5e6f6ebfa8](https://github.com/mssola/useragent/commit/6b5e6f6ebfa87464ccdb42bac5448cbf46ce1ba1).
77

88
## 0.5.4
99

10-
- Add detection of Coc Coc Browser. See [897eb45aec23](https://github.com/mssola/user_agent/commit/897eb45aec2330e7566c48c9e54192aae84bd8e9).
11-
- Add detection of Headless Chrome. See [897eb45aec23](https://github.com/mssola/user_agent/commit/897eb45aec2330e7566c48c9e54192aae84bd8e9).
12-
- Add detection of iOS WebViews. See [897eb45aec23](https://github.com/mssola/user_agent/commit/897eb45aec2330e7566c48c9e54192aae84bd8e9).
10+
- Add detection of Coc Coc Browser. See [897eb45aec23](https://github.com/mssola/useragent/commit/897eb45aec2330e7566c48c9e54192aae84bd8e9).
11+
- Add detection of Headless Chrome. See [897eb45aec23](https://github.com/mssola/useragent/commit/897eb45aec2330e7566c48c9e54192aae84bd8e9).
12+
- Add detection of iOS WebViews. See [897eb45aec23](https://github.com/mssola/useragent/commit/897eb45aec2330e7566c48c9e54192aae84bd8e9).
1313

1414
## 0.5.3
1515

16-
- Fix detection of Firefox on iPad. See [42e4a8f39125](https://github.com/mssola/user_agent/commit/42e4a8f39125a6680fb5367a4602963f1351e069).
17-
- Fix detection of Linux ARM-based Android. See [3b0e113c8047](https://github.com/mssola/user_agent/commit/3b0e113c804708c01de00c27aae07d2acfee40d8).
18-
- Add detection of Chromium Edge on Windows. See [ea81f1e9d61c](https://github.com/mssola/user_agent/commit/ea81f1e9d61c094df4156690a8f4d5481b0d6c4a).
19-
- Add detection of OkHttp. See [6b33e248e796](https://github.com/mssola/user_agent/commit/6b33e248e7969cf3e76128a34d33be88d4eb0dc8).
16+
- Fix detection of Firefox on iPad. See [42e4a8f39125](https://github.com/mssola/useragent/commit/42e4a8f39125a6680fb5367a4602963f1351e069).
17+
- Fix detection of Linux ARM-based Android. See [3b0e113c8047](https://github.com/mssola/useragent/commit/3b0e113c804708c01de00c27aae07d2acfee40d8).
18+
- Add detection of Chromium Edge on Windows. See [ea81f1e9d61c](https://github.com/mssola/useragent/commit/ea81f1e9d61c094df4156690a8f4d5481b0d6c4a).
19+
- Add detection of OkHttp. See [6b33e248e796](https://github.com/mssola/useragent/commit/6b33e248e7969cf3e76128a34d33be88d4eb0dc8).
2020

2121
## 0.5.2
2222

23-
- Detect Electron. See [commit](https://github.com/mssola/user_agent/commit/1a36963d74c0efca7de80dc7518a0958c66b3c4f).
24-
- Add support for both http and https site urls. See [commit](https://github.com/mssola/user_agent/commit/d78bf2c5886a0ab7e1cf90b68c808fe3e3ab6f8c).
25-
- Add more support for BingBot. See [commit](https://github.com/mssola/user_agent/commit/c6402a7b8aefdc4acfbf1e7f3b43eac0b266e49e).
26-
- Add a test case for Firefox focus on iOS. See [commit](https://github.com/mssola/user_agent/commit/a1e9c19d5a6887a17cef1d249118ccbd45cf4c0b).
27-
- Detect iMessage-Preview. See [commit](https://github.com/mssola/user_agent/commit/e8f5e19ded9711ee1f4b43218b9d57d00ef5c26a).
23+
- Detect Electron. See [commit](https://github.com/mssola/useragent/commit/1a36963d74c0efca7de80dc7518a0958c66b3c4f).
24+
- Add support for both http and https site urls. See [commit](https://github.com/mssola/useragent/commit/d78bf2c5886a0ab7e1cf90b68c808fe3e3ab6f8c).
25+
- Add more support for BingBot. See [commit](https://github.com/mssola/useragent/commit/c6402a7b8aefdc4acfbf1e7f3b43eac0b266e49e).
26+
- Add a test case for Firefox focus on iOS. See [commit](https://github.com/mssola/useragent/commit/a1e9c19d5a6887a17cef1d249118ccbd45cf4c0b).
27+
- Detect iMessage-Preview. See [commit](https://github.com/mssola/useragent/commit/e8f5e19ded9711ee1f4b43218b9d57d00ef5c26a).
2828

2929
## 0.5.1
3030

31-
- add Firefox for iOS. See [commit](https://github.com/mssola/user_agent/commit/00a868fa17e7).
32-
- Add go.mod. See [commit](https://github.com/mssola/user_agent/commit/8c16c37f4e07).
33-
- Use CodeLingo to Address Further Issues. See [commit](https://github.com/mssola/user_agent/commit/7e313fc62553).
34-
- Fix function comments based on best practices from Effective Go. See [commit](https://github.com/mssola/user_agent/commit/95b0c164394f).
35-
- test: mobile Yandex Browser. See [commit](https://github.com/mssola/user_agent/commit/1df9e04ee4f5).
36-
- Add Yandex browser. See [commit](https://github.com/mssola/user_agent/commit/6eb76c60b5e8).
37-
- Updating license notice. See [commit](https://github.com/mssola/user_agent/commit/8b3999083770).
38-
- Detect Chrome for iOS correctly. See [commit](https://github.com/mssola/user_agent/commit/82f141dea4a8).
39-
- Facebook App Handling. See [commit](https://github.com/mssola/user_agent/commit/5723c361ed97).
40-
- Add a new google bot user agent format. See [commit](https://github.com/mssola/user_agent/commit/57c32981bd5f).
31+
- add Firefox for iOS. See [commit](https://github.com/mssola/useragent/commit/00a868fa17e7).
32+
- Add go.mod. See [commit](https://github.com/mssola/useragent/commit/8c16c37f4e07).
33+
- Use CodeLingo to Address Further Issues. See [commit](https://github.com/mssola/useragent/commit/7e313fc62553).
34+
- Fix function comments based on best practices from Effective Go. See [commit](https://github.com/mssola/useragent/commit/95b0c164394f).
35+
- test: mobile Yandex Browser. See [commit](https://github.com/mssola/useragent/commit/1df9e04ee4f5).
36+
- Add Yandex browser. See [commit](https://github.com/mssola/useragent/commit/6eb76c60b5e8).
37+
- Updating license notice. See [commit](https://github.com/mssola/useragent/commit/8b3999083770).
38+
- Detect Chrome for iOS correctly. See [commit](https://github.com/mssola/useragent/commit/82f141dea4a8).
39+
- Facebook App Handling. See [commit](https://github.com/mssola/useragent/commit/5723c361ed97).
40+
- Add a new google bot user agent format. See [commit](https://github.com/mssola/useragent/commit/57c32981bd5f).
4141

4242
## 0.5.0
4343

4444
### Newly supported and improvements
4545

46-
- Added support for Microsoft Edge. See [commit](https://github.com/mssola/user_agent/commit/f659b9863849).
47-
- Precompile regular expressions. See [commit](https://github.com/mssola/user_agent/commit/783ec61292ae).
48-
- Added support for Dalvik user agent parsing. See [commit](https://github.com/mssola/user_agent/commit/78413629666f).
49-
- Improved bot support (also e25e612b37a4). See [commit](https://github.com/mssola/user_agent/commit/0319fcf00bfd).
50-
- Add Chromium support and Ubuntu specific tests. See [commit](https://github.com/mssola/user_agent/commit/6e7843e05771).
51-
- Add OSInfo function to user agent (also 7286ca6abc28). See [commit](https://github.com/mssola/user_agent/commit/3335cae017e7).
52-
- Detect updated UA for Googlebot. See [commit](https://github.com/mssola/user_agent/commit/6fe362d7cd64).
53-
- Adds the Adsense bot (mobile). See [commit](https://github.com/mssola/user_agent/commit/1438bfba89d7).
46+
- Added support for Microsoft Edge. See [commit](https://github.com/mssola/useragent/commit/f659b9863849).
47+
- Precompile regular expressions. See [commit](https://github.com/mssola/useragent/commit/783ec61292ae).
48+
- Added support for Dalvik user agent parsing. See [commit](https://github.com/mssola/useragent/commit/78413629666f).
49+
- Improved bot support (also e25e612b37a4). See [commit](https://github.com/mssola/useragent/commit/0319fcf00bfd).
50+
- Add Chromium support and Ubuntu specific tests. See [commit](https://github.com/mssola/useragent/commit/6e7843e05771).
51+
- Add OSInfo function to user agent (also 7286ca6abc28). See [commit](https://github.com/mssola/useragent/commit/3335cae017e7).
52+
- Detect updated UA for Googlebot. See [commit](https://github.com/mssola/useragent/commit/6fe362d7cd64).
53+
- Adds the Adsense bot (mobile). See [commit](https://github.com/mssola/useragent/commit/1438bfba89d7).
5454

5555
### Fixes
5656

57-
- Fixed bug when extracting windows 10. See [commit](https://github.com/mssola/user_agent/commit/8d86c2cf88bf).
58-
- Fixed bug on mobile Firefox browsers running on Android OS versions that report their version number inline.. See [commit](https://github.com/mssola/user_agent/commit/9d00ff9e4202).
57+
- Fixed bug when extracting windows 10. See [commit](https://github.com/mssola/useragent/commit/8d86c2cf88bf).
58+
- Fixed bug on mobile Firefox browsers running on Android OS versions that report their version number inline.. See [commit](https://github.com/mssola/useragent/commit/9d00ff9e4202).
5959

6060
### Other
6161

62-
- Improved testing infrastructure. See [commit](https://github.com/mssola/user_agent/commit/63395b193f8812526305bec75ea7117262a124aa).
62+
- Improved testing infrastructure. See [commit](https://github.com/mssola/useragent/commit/63395b193f8812526305bec75ea7117262a124aa).
6363

6464
## Older releases
6565

6666
See the description on each release
67-
[here](https://github.com/mssola/user_agent/releases).
67+
[here](https://github.com/mssola/useragent/releases).

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to user_agent
1+
# Contributing to useragent
22

33
## Check that your changes do not break anything
44

@@ -20,9 +20,9 @@ what you want.
2020

2121
## Issue reporting
2222

23-
I'm using [Github](https://github.com/mssola/user_agent) in order to host the
23+
I'm using [Github](https://github.com/mssola/useragent) in order to host the
2424
code. Thus, in order to report issues you can do it on its [issue
25-
tracker](https://github.com/mssola/user_agent/issues). A couple of notes on
25+
tracker](https://github.com/mssola/useragent/issues). A couple of notes on
2626
reports:
2727

2828
- Check that the issue has not already been reported or fixed in `master`.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
2-
<a href="https://github.com/mssola/user_agent/actions/workflows/ci.yml" title="Travis CI status for the default branch"><img src="https://github.com/mssola/user_agent/actions/workflows/ci.yml/badge.svg" alt="Build Status for the default branch" /></a>
3-
<a href="https://pkg.go.dev/github.com/mssola/user_agent" title="go.dev page"><img src="https://pkg.go.dev/badge/github.com/mssola/user_agent" alt="go.dev page" /></a>
2+
<a href="https://github.com/mssola/useragent/actions/workflows/ci.yml" title="Travis CI status for the default branch"><img src="https://github.com/mssola/useragent/actions/workflows/ci.yml/badge.svg" alt="Build Status for the default branch" /></a>
3+
<a href="https://pkg.go.dev/github.com/mssola/useragent" title="go.dev page"><img src="https://pkg.go.dev/badge/github.com/mssola/useragent" alt="go.dev page" /></a>
44
<a href="https://en.wikipedia.org/wiki/MIT_License" rel="nofollow"><img alt="MIT" src="https://img.shields.io/badge/license-MIT-blue.svg" style="max-width:100%;"></a>
55
</p>
66

@@ -14,14 +14,14 @@ package main
1414
import (
1515
"fmt"
1616

17-
"github.com/mssola/user_agent"
17+
"github.com/mssola/useragent"
1818
)
1919

2020
func main() {
2121
// The "New" function will create a new UserAgent object and it will parse
2222
// the given string. If you need to parse more strings, you can re-use
2323
// this object and call: ua.Parse("another string")
24-
ua := user_agent.New("Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1")
24+
ua := useragent.New("Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1")
2525

2626
fmt.Printf("%v\n", ua.Mobile()) // => true
2727
fmt.Printf("%v\n", ua.Bot()) // => false
@@ -52,12 +52,12 @@ func main() {
5252
```
5353

5454
If you want to read the full API documentation simply check
55-
[godoc](https://pkg.go.dev/github.com/mssola/user_agent).
55+
[godoc](https://pkg.go.dev/github.com/mssola/useragent).
5656

5757
## Installation
5858

5959
```
60-
go get -u github.com/mssola/user_agent
60+
go get -u github.com/mssola/useragent
6161
```
6262

6363
## Contributing

all_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is licensed under the MIT license.
33
// See the LICENSE file.
44

5-
package user_agent
5+
package useragent
66

77
import (
88
"fmt"

bot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is licensed under the MIT license.
33
// See the LICENSE file.
44

5-
package user_agent
5+
package useragent
66

77
import (
88
"regexp"

browser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is licensed under the MIT license.
33
// See the LICENSE file.
44

5-
package user_agent
5+
package useragent
66

77
import (
88
"regexp"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/mssola/user_agent
1+
module github.com/mssola/useragent
22

33
go 1.13

model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package user_agent
1+
package useragent
22

33
import (
44
"strings"

operating_systems.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This file is licensed under the MIT license.
33
// See the LICENSE file.
44

5-
package user_agent
5+
package useragent
66

77
import (
88
"strings"

user_agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// This file is licensed under the MIT license.
33
// See the LICENSE file.
44

5-
// Package user_agent implements an HTTP User Agent string parser. It defines
5+
// Package useragent implements an HTTP User Agent string parser. It defines
66
// the type UserAgent that contains all the information from the parsed string.
77
// It also implements the Parse function and getters for all the relevant
88
// information that has been extracted from a parsed User Agent string.
9-
package user_agent
9+
package useragent
1010

1111
import "strings"
1212

0 commit comments

Comments
 (0)