Skip to content

Commit

Permalink
rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
HuckOps committed Jun 13, 2023
1 parent e2b35fc commit 7f1f9fc
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package auto_config

import (
"auto_config/loader"
"auto_config/reader"
"auto_config/source"
"github.com/huckops/auto_config/loader"
"github.com/huckops/auto_config/reader"
"github.com/huckops/auto_config/source"
)

type Options struct {
Expand Down
4 changes: 2 additions & 2 deletions config_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package auto_config

import (
"auto_config/loader"
"auto_config/source/file"
"fmt"
"github.com/huckops/auto_config/loader"
"github.com/huckops/auto_config/source/file"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions defaults.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package auto_config

import (
"auto_config/loader"
"auto_config/reader"
"github.com/huckops/auto_config/loader"
"github.com/huckops/auto_config/reader"
"sync"
)

Expand Down
2 changes: 1 addition & 1 deletion encoder/encoder_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package encoder

import (
"auto_config/encoder/yaml"
"github.com/huckops/auto_config/encoder/yaml"
"io/ioutil"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion encoder/json/json.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package json

import (
"auto_config/encoder"
jsonEncoding "encoding/json"
"github.com/huckops/auto_config/encoder"
)

type json struct{}
Expand Down
2 changes: 1 addition & 1 deletion encoder/yaml/yaml.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package yaml

import (
"auto_config/encoder"
yamlv2 "github.com/ghodss/yaml"
"github.com/huckops/auto_config/encoder"
)

type yaml struct{}
Expand Down
2 changes: 1 addition & 1 deletion loader/loader.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package loader

import (
"auto_config/source"
"github.com/huckops/auto_config/source"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions loader/memory.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package loader

import (
"auto_config/reader"
"auto_config/source"
"errors"
"fmt"
"github.com/huckops/auto_config/reader"
"github.com/huckops/auto_config/source"
"strings"
"sync"
"time"
Expand Down
4 changes: 2 additions & 2 deletions loader/options.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package loader

import (
"auto_config/reader"
"auto_config/source"
"context"
"github.com/huckops/auto_config/reader"
"github.com/huckops/auto_config/source"
)

type Options struct {
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package auto_config

import "auto_config/source"
import "github.com/huckops/auto_config/source"

func WithEntity(v interface{}) Option {
return func(options *Options) {
Expand Down
6 changes: 3 additions & 3 deletions reader/json.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package reader

import (
"auto_config/encoder"
"auto_config/encoder/json"
"auto_config/source"
"errors"
"github.com/huckops/auto_config/encoder"
"github.com/huckops/auto_config/encoder/json"
"github.com/huckops/auto_config/source"
"github.com/imdario/mergo"
"time"
)
Expand Down
6 changes: 3 additions & 3 deletions reader/options.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package reader

import (
"auto_config/encoder"
"auto_config/encoder/json"
"auto_config/encoder/yaml"
"github.com/huckops/auto_config/encoder"
"github.com/huckops/auto_config/encoder/json"
"github.com/huckops/auto_config/encoder/yaml"
)

type Options struct {
Expand Down
2 changes: 1 addition & 1 deletion reader/reader.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package reader

import "auto_config/source"
import "github.com/huckops/auto_config/source"

type Reader interface {
Merge(...*source.ChangeSet) (*source.ChangeSet, error)
Expand Down
2 changes: 1 addition & 1 deletion source/file/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package file

import (
"auto_config/source"
"github.com/huckops/auto_config/source"
"io/ioutil"
"os"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion source/file/options.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package file

import (
"auto_config/source"
"context"
"github.com/huckops/auto_config/source"
)

//type Options struct {
Expand Down
2 changes: 1 addition & 1 deletion source/file/watcher.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package file

import (
"auto_config/source"
"github.com/fsnotify/fsnotify"
"github.com/huckops/auto_config/source"
"os"
)

Expand Down
4 changes: 2 additions & 2 deletions source/options.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package source

import (
"auto_config/encoder"
"auto_config/encoder/json"
"context"
"github.com/huckops/auto_config/encoder"
"github.com/huckops/auto_config/encoder/json"
)

type Options struct {
Expand Down

0 comments on commit 7f1f9fc

Please sign in to comment.