code: func GeneratePasswordCharset(length int, chars string) string {
  	pw := &bytes.Buffer{}
  	for pw.Len() < length {
  		_ = pw.WriteByte(chars[randomInteger(len(chars))])
  	}
  	return pw.String()
  }
docs: // GeneratePasswordCharset generates a random password from a given
  // set of characters