forked from p93542168/wheat-cache
feat(test-test): add test func
This commit is contained in:
parent
f768f361c1
commit
3709b6f8e5
|
@ -0,0 +1,17 @@
|
|||
package lru
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
// 保证所有函数和变量最小作用域
|
||||
|
||||
func Test(a int) (string, error) {
|
||||
return strconv.Itoa(a), nil
|
||||
}
|
||||
|
||||
func Nows() string {
|
||||
return time.Now().Format("2006-01-02")
|
||||
}
|
||||
|
Loading…
Reference in New Issue