generator.go 232 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package main

import (
	"fmt"
	"github.com/elgs/gostrgen"
)

func GetNewKey() (error, string) {
	key, err := gostrgen.RandGen(6, gostrgen.LowerUpper, "", "")
	if err != nil {
		fmt.Print(err)
		return err, ""
	}

	return nil, key
}