func NewUserInfo(username, nickname, password string, groups []string) *UserInfo {
	return &UserInfo{Username: username, Nickname: nickname, Password: password, Groups: groups}
}
NewUserInfo is construction method
package rbac
import (
	"strings"
	"github.com/fanux/fist/tools"
)
type UserInfo struct {
	Username string   `json:"username"`
	Nickname string   `json:"nickname"`
	Password string   `json:"password,omitempty"`
	Groups   []string `json:"groups,omitempty"`
}