moved local imports into 'internal' parent package

This commit is contained in:
Adrien Marquès 2018-07-09 00:08:53 +02:00
parent a555356cd8
commit 6784c2df95
24 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@ package main
import ( import (
"fmt" "fmt"
"git.xdrm.io/go/aicra/clifmt" "git.xdrm.io/go/aicra/internal/clifmt"
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"

View File

@ -3,7 +3,7 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"git.xdrm.io/go/aicra/clifmt" "git.xdrm.io/go/aicra/internal/clifmt"
"os" "os"
"path/filepath" "path/filepath"
"time" "time"
@ -76,7 +76,7 @@ func main() {
} }
// default types folder // default types folder
dtPath := filepath.Join(os.Getenv("GOPATH"), "src/git.xdrm.io/go/aicra/checker/default") dtPath := filepath.Join(os.Getenv("GOPATH"), "src/git.xdrm.io/go/aicra/internal/checker/default")
/* (3) Check path are existing dirs /* (3) Check path are existing dirs
---------------------------------------------------------*/ ---------------------------------------------------------*/

View File

@ -3,7 +3,7 @@ package request
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"git.xdrm.io/go/aicra/multipart" "git.xdrm.io/go/aicra/internal/multipart"
"log" "log"
"net/http" "net/http"
"strings" "strings"

View File

@ -2,12 +2,12 @@ package aicra
import ( import (
"fmt" "fmt"
"git.xdrm.io/go/aicra/checker"
"git.xdrm.io/go/aicra/config"
e "git.xdrm.io/go/aicra/err" e "git.xdrm.io/go/aicra/err"
"git.xdrm.io/go/aicra/implement" "git.xdrm.io/go/aicra/implement"
"git.xdrm.io/go/aicra/internal/checker"
"git.xdrm.io/go/aicra/internal/config"
"git.xdrm.io/go/aicra/internal/request"
"git.xdrm.io/go/aicra/middleware" "git.xdrm.io/go/aicra/middleware"
"git.xdrm.io/go/aicra/request"
"log" "log"
"net/http" "net/http"
) )

View File

@ -1,8 +1,8 @@
package aicra package aicra
import ( import (
"git.xdrm.io/go/aicra/checker" "git.xdrm.io/go/aicra/internal/checker"
"git.xdrm.io/go/aicra/config" "git.xdrm.io/go/aicra/internal/config"
"git.xdrm.io/go/aicra/middleware" "git.xdrm.io/go/aicra/middleware"
) )

View File

@ -2,10 +2,10 @@ package aicra
import ( import (
"encoding/json" "encoding/json"
"git.xdrm.io/go/aicra/config"
"git.xdrm.io/go/aicra/err" "git.xdrm.io/go/aicra/err"
"git.xdrm.io/go/aicra/implement" "git.xdrm.io/go/aicra/implement"
"git.xdrm.io/go/aicra/request" "git.xdrm.io/go/aicra/internal/config"
"git.xdrm.io/go/aicra/internal/request"
"log" "log"
"net/http" "net/http"
) )