1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-06-22 21:04:41 +08:00

Use Go1.11 module ()

* Migrate to go modules

* make vendor

* Update mvdan.cc/xurls

* make vendor

* Update code.gitea.io/git

* make fmt-check

* Update github.com/go-sql-driver/mysql

* make vendor
This commit is contained in:
Mura Li
2019-03-27 19:15:23 +08:00
committed by Lunny Xiao
parent d578b71d61
commit d77176912b
575 changed files with 63239 additions and 13963 deletions
CONTRIBUTING.mdGopkg.lockGopkg.tomlMakefilego.modgo.sum
modules/markup
vendor
github.com
BurntSushi/toml
PuerkitoBio/goquery
RoaringBitmap/roaring
Unknwon
andybalholm/cascadia
beorn7/perks/quantile
blevesearch
boombuler/barcode
chaseadamsio/goorgeous
couchbase
couchbaselabs/go-couchbase
davecgh/go-spew
denisenkom/go-mssqldb
dgrijalva/jwt-go
edsrzf/mmap-go
elazarl/go-bindata-assetfs
etcd-io/bbolt
ethantkoenig/rupture
facebookgo
glycerine/go-unsnap-stream
go-macaron
go-sql-driver/mysql
go-xorm
gogits
golang/snappy
gorilla
issue9/identicon
jaytaylor/html2text
kballard/go-shellquote
kevinburke/ssh_config
keybase/go-crypto/openpgp
klauspost
lafriks/xormstore
lib/pq
lunny
markbates/goth
mattn/go-sqlite3
matttproud/golang_protobuf_extensions/pbutil
mcuadros/go-version
microcosm-cc/bluemonday
mitchellh/go-homedir
mrjones/oauth
mschoch/smat
msteinert/pam
nfnt/resize
pelletier/go-buffruneio
philhofer/fwd
pkg/errors
pquerna/otp
prometheus
client_golang/prometheus
client_model/ruby
common/internal/bitbucket.org/ww/goautoneg
procfs
russross/blackfriday
satori/go.uuid
sergi/go-diff
shurcooL/sanitized_anchor_name
src-d/gcfg
steveyen/gtreap
stretchr/testify
tstranex/u2f
urfave/cli
willf/bitset
xanzy/ssh-agent
yohcop/openid-go
golang.org/x
google.golang.org/appengine
gopkg.in
modules.txt
mvdan.cc/xurls/v2
strk.kbt.io/projects/go/libravatar

@ -29,8 +29,7 @@ Let's start with an example that shows the sessions API in a nutshell:
var store = sessions.NewCookieStore([]byte("something-very-secret"))
func MyHandler(w http.ResponseWriter, r *http.Request) {
// Get a session. We're ignoring the error resulted from decoding an
// existing session: Get() always returns a session, even if empty.
// Get a session. Get() always returns a session, even if empty.
session, err := store.Get(r, "session-name")
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
@ -80,7 +79,7 @@ flashes, call session.Flashes(). Here is an example:
return
}
// Get the previously flashes, if any.
// Get the previous flashes, if any.
if flashes := session.Flashes(); len(flashes) > 0 {
// Use the flash values.
} else {