Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportedWordLists ¶
ExportedWordLists returns the adjectives and nouns slices for testing.
func Generate ¶
func Generate() string
Generate returns a name string in YYYYMMDD-adjective-noun-NN format. It does NOT create a directory — it only generates the name string.
func GenerateAndCreate ¶
GenerateAndCreate creates a unique subdirectory inside baseDir and returns the full absolute path. It uses os.Mkdir (atomic) for the leaf to handle concurrent creation races. It retries up to maxAttempts times. On success, the directory exists on disk and is owned by this call. Returns error if maxAttempts exhausted or baseDir cannot be written.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.