Skip to content

Commit

Permalink
refactor : directory adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
pojol committed Nov 13, 2021
1 parent b1c6606 commit 7340cff
Show file tree
Hide file tree
Showing 32 changed files with 28 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions driver/bot/bot.go → bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"time"

"github.com/google/uuid"
"github.com/pojol/gobot/driver/behavior"
"github.com/pojol/gobot/driver/script"
"github.com/pojol/gobot/driver/utils"
"github.com/pojol/gobot/behavior"
"github.com/pojol/gobot/script"
"github.com/pojol/gobot/utils"
lua "github.com/yuin/gopher-lua"
)

Expand Down
6 changes: 3 additions & 3 deletions driver/bot/bot_test.go → bot/bot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"testing"

"github.com/pojol/gobot/driver/behavior"
"github.com/pojol/gobot/driver/mock"
"github.com/pojol/gobot/driver/utils"
"github.com/pojol/gobot/behavior"
"github.com/pojol/gobot/mock"
"github.com/pojol/gobot/utils"
"github.com/stretchr/testify/assert"
lua "github.com/yuin/gopher-lua"
)
Expand Down
2 changes: 1 addition & 1 deletion driver/database/db.go → database/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

"github.com/pojol/gobot/driver/bot"
"github.com/pojol/gobot/bot"
"gorm.io/driver/mysql"
"gorm.io/gorm"
)
Expand Down
6 changes: 3 additions & 3 deletions driver/factory/batch.go → factory/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/fatih/color"
"github.com/google/uuid"
"github.com/pojol/gobot/driver/behavior"
"github.com/pojol/gobot/driver/bot"
"github.com/pojol/gobot/driver/utils"
"github.com/pojol/gobot/behavior"
"github.com/pojol/gobot/bot"
"github.com/pojol/gobot/utils"
)

type BatchInfo struct {
Expand Down
8 changes: 4 additions & 4 deletions driver/factory/factory.go → factory/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"sync"
"time"

"github.com/pojol/gobot/driver/behavior"
"github.com/pojol/gobot/driver/bot"
"github.com/pojol/gobot/driver/database"
"github.com/pojol/gobot/driver/utils"
"github.com/pojol/gobot/behavior"
"github.com/pojol/gobot/bot"
"github.com/pojol/gobot/database"
"github.com/pojol/gobot/utils"
)

type urlDetail struct {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion driver/factory/factory_test.go → factory/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/pojol/gobot/driver/mock"
"github.com/pojol/gobot/mock"
)

var compose = `
Expand Down
6 changes: 3 additions & 3 deletions driver/main.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/pojol/gobot/driver/factory"
"github.com/pojol/gobot/driver/mock"
"github.com/pojol/gobot/driver/server"
"github.com/pojol/gobot/factory"
"github.com/pojol/gobot/mock"
"github.com/pojol/gobot/server"
)

var (
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions driver/plugins/json/json.go → plugins/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"encoding/json"

"github.com/pojol/gobot/driver/plugins"
"github.com/pojol/gobot/driver/serialization"
"github.com/pojol/gobot/plugins"
"github.com/pojol/gobot/serialization"
)

type jsonp struct {
Expand Down
2 changes: 1 addition & 1 deletion driver/plugins/plugin.go → plugins/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"plugin"

"github.com/pojol/gobot/driver/serialization"
"github.com/pojol/gobot/serialization"
)

type Plugin struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion driver/script/http.go → script/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/pojol/gobot/driver/utils"
"github.com/pojol/gobot/utils"
lua "github.com/yuin/gopher-lua"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion driver/script/script_test.go → script/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/gogo/protobuf/proto"
"github.com/pojol/gobot/driver/script/book"
"github.com/pojol/gobot/script/book"
lua "github.com/yuin/gopher-lua"
)

Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions driver/server/server.go → server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"net/http"

"github.com/labstack/echo/v4"
"github.com/pojol/gobot/driver/behavior"
"github.com/pojol/gobot/driver/bot"
"github.com/pojol/gobot/driver/database"
"github.com/pojol/gobot/driver/factory"
"github.com/pojol/gobot/driver/utils"
"github.com/pojol/gobot/behavior"
"github.com/pojol/gobot/bot"
"github.com/pojol/gobot/database"
"github.com/pojol/gobot/factory"
"github.com/pojol/gobot/utils"
)

type Response struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7340cff

Please sign in to comment.