func (u UserConfig) Format() string {
	return u["format"]
}
Format returns the format(string) for
this UserConfig
package module
import (
	"fmt"
	"regexp"
	"strconv"
	"strings"
	"github.com/aristanetworks/goeapi"
)
const defaultEncryption = "cleartext"
var encryptionMap = map[string]string{
	"cleartext": "0",
	"md5":       "5",
	"sha512":    "sha512",
}
var usersRegex = regexp.MustCompile(`(?m)username ([^\s]+) privilege (\d+)` +
	`(?m)(?: role ([^\s]+))?` +
	`(?m)(?: (nopassword))?` +
	`(?m)(?: secret (0|5|7|sha512) (.+))?` +
	`(?m).*$\n(?:username ([^\s]+) sshkey (.+)$)?`)
type UserConfig map[string]string
type UserConfigMap map[string]UserConfig
func (u UserConfig) UserName() string {
	return u["username"]
}
func (u UserConfig) Privilege() string {
	return u["privilege"]
}
func (u UserConfig) Role() string {
	return u["role"]
}
func (u UserConfig) Nopassword() string {
	return u["nopassword"]
}