Skip to content

Commit

Permalink
reset package name
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyibing committed Feb 23, 2021
1 parent 0e5c4e6 commit f3f8505
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# logger

1. [x] 包名: `github.com/fuyibing/log`.
1. [x] 包名: `github.com/fuyibing/log/v2`.
1. [x] 版本: `v2`

> 本包在导入后, 扫描 `tmp/log.yaml``config/log.yaml` 并初始化,
Expand Down
2 changes: 1 addition & 1 deletion adapters/file_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package adapters
import (
"sync"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

// 文件配置.
Expand Down
2 changes: 1 addition & 1 deletion adapters/redis_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/gomodule/redigo/redis"
"gopkg.in/yaml.v3"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

type redisConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion adapters/term_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package adapters
import (
"fmt"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

type termAdapter struct {
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"os"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

// 日志客户端.
Expand Down
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

"gopkg.in/yaml.v3"

"github.com/fuyibing/log/adapters"
"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/adapters"
"github.com/fuyibing/log/v2/interfaces"
)

// 日志配置.
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"net/http"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

// 绑定Tracing.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/fuyibing/log
module github.com/fuyibing/log/v2

go 1.14
go 1.13

require (
github.com/gomodule/redigo v1.8.4
Expand Down
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package log
import (
"sync"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion line.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"time"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion plugins/xorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

xorm "xorm.io/xorm/log"

"github.com/fuyibing/log"
"github.com/fuyibing/log/v2"
)

type XOrm struct{}
Expand Down
2 changes: 1 addition & 1 deletion tests/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package tests
import (
"testing"

"github.com/fuyibing/log"
"github.com/fuyibing/log/v2"
)

func TestConfig(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions tests/func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/fuyibing/log"
"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2"
"github.com/fuyibing/log/v2/interfaces"
)

func TestFunc(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions tests/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package tests
import (
"testing"

"github.com/fuyibing/log"
"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2"
"github.com/fuyibing/log/v2/interfaces"
)

func TestHandler(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tests/xorm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package tests
import (
"testing"

"github.com/fuyibing/log/plugins"
"github.com/fuyibing/log/v2/plugins"
)

func TestPluginXorm(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/google/uuid"

"github.com/fuyibing/log/interfaces"
"github.com/fuyibing/log/v2/interfaces"
)

// 请求链结构体.
Expand Down

0 comments on commit f3f8505

Please sign in to comment.