34f293220c
* Refactor e2e testing tool. - Enable creation of things and channels over 100 values using batched requests. - Change library of generating random names to a better one. - Fix WS sending of messages. Signed-off-by: Rodney Osodo <socials@rodneyosodo.com> * Refactor e2e test configuration The e2e test configuration has been refactored to improve readability and maintainability. The following changes have been made: - Removed the defReaderURL constant as it is no longer used. - Added usersPort and thingsPort constants for the respective URLs. - Updated the ThingsURL and UsersURL in the Test function to use the new constants. These changes make the code more modular and easier to understand. Signed-off-by: Rodney Osodo <socials@rodneyosodo.com> Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> --------- Signed-off-by: Rodney Osodo <socials@rodneyosodo.com> Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com> |
||
---|---|---|
.. | ||
.gitignore | ||
.goreleaser.yaml | ||
.pre-commit-config.yaml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
Makefile | ||
README.md | ||
SECURITY.md | ||
doc.go | ||
generator.go | ||
namegenerator.py | ||
names.go |
README.md
namegenerator
NameGenerator is a Golang package that provides a simple yet powerful tool for generating human-readable and pronounceable random names. The names are generated by namegenerator.py from https://www.cs.cmu.edu/ dataset.
Installation
go get github.com/0x6flab/namegenerator
Usage
package main
import (
"fmt"
"github.com/0x6flab/namegenerator"
)
func main() {
generator := namegenerator.NewNameGenerator("")
// Generate a random name
name := generator.Generate()
// Print the name
fmt.Println(name)
}
Examples
See examples directory for more examples.
License
This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.