mirror of
https://gitee.com/johng/gf.git
synced 2024-12-12 12:45:08 +08:00
15 lines
237 B
Go
15 lines
237 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/util/gvalid"
|
|
)
|
|
|
|
func main() {
|
|
g.I18n().SetLanguage("cn")
|
|
err := gvalid.Check(context.TODO(), "", "required", nil)
|
|
fmt.Println(err.String())
|
|
}
|