v3 refactor (#1868)

* Move to v3

Co-authored-by: Ben Toogood <bentoogood@gmail.com>
This commit is contained in:
Asim Aslam
2020-07-27 13:22:00 +01:00
committed by GitHub
parent 9dfeb98111
commit 563768b58a
424 changed files with 6383 additions and 22490 deletions

View File

@@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"
"github.com/micro/go-micro/v2/config/source"
"github.com/micro/go-micro/v3/config/source"
)
type file struct {

View File

@@ -7,8 +7,8 @@ import (
"testing"
"time"
"github.com/micro/go-micro/v2/config"
"github.com/micro/go-micro/v2/config/source/file"
"github.com/micro/go-micro/v3/config"
"github.com/micro/go-micro/v3/config/source/file"
)
func TestConfig(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package file
import (
"strings"
"github.com/micro/go-micro/v2/config/encoder"
"github.com/micro/go-micro/v3/config/encoder"
)
func format(p string, e encoder.Encoder) string {

View File

@@ -3,7 +3,7 @@ package file
import (
"testing"
"github.com/micro/go-micro/v2/config/source"
"github.com/micro/go-micro/v3/config/source"
)
func TestFormat(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package file
import (
"context"
"github.com/micro/go-micro/v2/config/source"
"github.com/micro/go-micro/v3/config/source"
)
type filePathKey struct{}

View File

@@ -6,7 +6,7 @@ import (
"os"
"github.com/fsnotify/fsnotify"
"github.com/micro/go-micro/v2/config/source"
"github.com/micro/go-micro/v3/config/source"
)
type watcher struct {

View File

@@ -6,7 +6,7 @@ import (
"os"
"github.com/fsnotify/fsnotify"
"github.com/micro/go-micro/v2/config/source"
"github.com/micro/go-micro/v3/config/source"
)
type watcher struct {