コード例 #1
0
ファイル: app_session_test.go プロジェクト: mabetle/mcore
func ExampleAppSession() {
	fmt.Printf("%s\n", mapp.GetAppSession("appname"))
	// Output:
	// demo
}
コード例 #2
0
ファイル: app_session_test.go プロジェクト: mabetle/mcore
func TestAppSession(t *testing.T) {
	if mapp.GetAppSession("appname") != "demo" {
		t.Error("error get app name")
	}
}