mirror of
https://github.com/astaxie/beego.git
synced 2025-06-19 15:20:40 +00:00
Format code
This commit is contained in:
build_info.go
cache/redis
config/yaml
logs
metric
orm
pkg
build_info.go
cache
redis
common
config
yaml
logs
metric
orm
session
staticfile.gotemplatefunc.gotoolbox
validation
session
staticfile.gotemplatefunc.gotoolbox
validation
@ -16,9 +16,9 @@ package logs
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"strings"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ package logs
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"strings"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -31,13 +31,14 @@
|
|||||||
//
|
//
|
||||||
// more docs: http://beego.me/docs/module/session.md
|
// more docs: http://beego.me/docs/module/session.md
|
||||||
package redis_cluster
|
package redis_cluster
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/astaxie/beego/session"
|
||||||
|
rediss "github.com/go-redis/redis"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"github.com/astaxie/beego/session"
|
|
||||||
rediss "github.com/go-redis/redis"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -369,7 +369,6 @@ func TestFileSessionStore_SessionRelease(t *testing.T) {
|
|||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
s.Set(i, i)
|
s.Set(i, i)
|
||||||
s.SessionRelease(nil)
|
s.SessionRelease(nil)
|
||||||
}
|
}
|
||||||
|
@ -31,13 +31,14 @@
|
|||||||
//
|
//
|
||||||
// more docs: http://beego.me/docs/module/session.md
|
// more docs: http://beego.me/docs/module/session.md
|
||||||
package redis_cluster
|
package redis_cluster
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/astaxie/beego/session"
|
||||||
|
rediss "github.com/go-redis/redis"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"github.com/astaxie/beego/session"
|
|
||||||
rediss "github.com/go-redis/redis"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -369,7 +369,6 @@ func TestFileSessionStore_SessionRelease(t *testing.T) {
|
|||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
s.Set(i, i)
|
s.Set(i, i)
|
||||||
s.SessionRelease(nil)
|
s.SessionRelease(nil)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user