3c91360d by astaxie

dictinct system pkg and third pkg

1 parent 983f2064
......@@ -2,9 +2,10 @@ package beego
import (
"fmt"
"github.com/astaxie/beego/toolbox"
"net/http"
"time"
"github.com/astaxie/beego/toolbox"
)
var BeeAdminApp *AdminApp
......
......@@ -2,11 +2,12 @@ package beego
import (
"fmt"
"github.com/astaxie/beego/context"
"net"
"net/http"
"net/http/fcgi"
"time"
"github.com/astaxie/beego/context"
)
type FilterFunc func(*context.Context)
......
......@@ -3,6 +3,7 @@ package cache
import (
"encoding/json"
"errors"
"github.com/beego/memcache"
)
......
......@@ -3,6 +3,7 @@ package cache
import (
"encoding/json"
"errors"
"github.com/beego/redigo/redis"
)
......
......@@ -26,7 +26,6 @@ var (
HttpKeyFile string
RecoverPanic bool
AutoRender bool
PprofOn bool
ViewsPath string
RunMode string //"dev" or "prod"
AppConfig config.ConfigContainer
......@@ -71,7 +70,6 @@ func InitConfig() {
RunMode = "dev" //default runmod
AutoRender = true
RecoverPanic = true
PprofOn = false
ViewsPath = "views"
SessionOn = false
SessionProvider = "memory"
......
......@@ -4,11 +4,12 @@ package config
import (
"errors"
"github.com/beego/x2j"
"io/ioutil"
"os"
"strconv"
"sync"
"github.com/beego/x2j"
)
type XMLConfig struct {
......
......@@ -4,11 +4,12 @@ import (
"bytes"
"encoding/json"
"errors"
"github.com/beego/goyaml2"
"io/ioutil"
"log"
"os"
"sync"
"github.com/beego/goyaml2"
)
type YAMLConfig struct {
......
package context
import (
"github.com/astaxie/beego/middleware"
"net/http"
"github.com/astaxie/beego/middleware"
)
type Context struct {
......
......@@ -2,11 +2,12 @@ package context
import (
"bytes"
"github.com/astaxie/beego/session"
"io/ioutil"
"net/http"
"strconv"
"strings"
"github.com/astaxie/beego/session"
)
type BeegoInput struct {
......
......@@ -7,8 +7,6 @@ import (
"encoding/base64"
"errors"
"fmt"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/session"
"html/template"
"io"
"io/ioutil"
......@@ -20,6 +18,9 @@ import (
"strconv"
"strings"
"time"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/session"
)
type Controller struct {
......
package beego
import (
"github.com/astaxie/beego/context"
"net/http"
"net/http/httptest"
"testing"
"github.com/astaxie/beego/context"
)
var FilterUser = func(ctx *context.Context) {
......
......@@ -2,9 +2,6 @@ package beego
import (
"fmt"
beecontext "github.com/astaxie/beego/context"
"github.com/astaxie/beego/middleware"
"github.com/astaxie/beego/toolbox"
"net/http"
"net/url"
"os"
......@@ -14,6 +11,10 @@ import (
"strconv"
"strings"
"time"
beecontext "github.com/astaxie/beego/context"
"github.com/astaxie/beego/middleware"
"github.com/astaxie/beego/toolbox"
)
const (
......
......@@ -9,9 +9,10 @@ package session
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
"sync"
"time"
_ "github.com/go-sql-driver/mysql"
)
var mysqlpder = &MysqlProvider{}
......
package session
import (
"github.com/beego/redigo/redis"
"strconv"
"strings"
"sync"
"github.com/beego/redigo/redis"
)
var redispder = &RedisProvider{}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!