db525cba by astaxie

add session test & delete readme

1 parent d6dd84d5
## beego
=======
beego is a Go Framework which is inspired from tornado and sinatra.
It is a simply & powerful web framework.
......
package session
import (
"testing"
)
func Test_gob(t *testing.T) {
a := make(map[interface{}]interface{})
a["username"] = "astaxie"
a[12] = 234
b, err := encodeGob(a)
if err != nil {
t.Error(err)
}
c, err := decodeGob(b)
if err != nil {
t.Error(err)
}
if len(c) == 0 {
t.Error("decodeGob empty")
}
if c["username"] != "astaxie" {
t.Error("decode string error")
}
if c[12] != 234 {
t.Error("decode int error")
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!