Skip to content

Commit

Permalink
update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed Sep 14, 2018
1 parent 20e3677 commit 5dc62a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: go
sudo: false
go_import_path: gopkg.in/go-oauth2/mysql.v3
go:
- 1.7
- 1.9
services:
- mysql
before_install:
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@ package main

import (
"gopkg.in/go-oauth2/mysql.v3"
"gopkg.in/oauth2.v3/manage"
_ "github.com/go-sql-driver/mysql"
"gopkg.in/oauth2.v3/manage"

_ "github.com/go-sql-driver/mysql"
)

func main() {
manager := manage.NewDefaultManager()

// use mysql token store
manager.MapTokenStorage(
mysql.NewStore(mysql.NewConfig("root:123456@tcp(127.0.0.1:3306)/myapp_test?charset=utf8") , "", 0),
mysql.NewStore(mysql.NewConfig("root:123456@tcp(127.0.0.1:3306)/myapp_test?charset=utf8"), "", 0),
)
// ...
}

```

## MIT License
Expand Down

0 comments on commit 5dc62a6

Please sign in to comment.