From 439350836ed5684d0da6b6d1bf39e5e6d8f8035f Mon Sep 17 00:00:00 2001 From: John Guo Date: Mon, 21 Mar 2022 22:44:21 +0800 Subject: [PATCH] fix example case for package gsession --- os/gsession/gsession_z_example_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/os/gsession/gsession_z_example_test.go b/os/gsession/gsession_z_example_test.go index bc65361ac..e48b8f894 100644 --- a/os/gsession/gsession_z_example_test.go +++ b/os/gsession/gsession_z_example_test.go @@ -1,12 +1,19 @@ +// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. +// +// This Source Code Form is subject to the terms of the MIT License. +// If a copy of the MIT was not distributed with this file, +// You can obtain one at https://github.com/gogf/gf. + package gsession_test import ( "fmt" + "time" + "github.com/gogf/gf/v2/container/gmap" "github.com/gogf/gf/v2/database/gredis" "github.com/gogf/gf/v2/os/gctx" "github.com/gogf/gf/v2/os/gsession" - "time" ) func ExampleNew() { @@ -342,7 +349,7 @@ func ExampleStorageRedisHashTable_GetSession() { fmt.Println(err) // Output: - // + // // redis adapter not initialized, missing configuration or adapter register? }