woordsoek

command module
v0.0.0-...-7b9a713 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 7 Imported by: 0

README

Woordsoek

Woordsoek is a Text User Interface (TUI) for searching words in a text file based on specific criteria. It supports loading environment variables from a .env file.

Features

  • Word Search: Search for words that contain a specific single letter and are composed of characters from a given 6-character string.
  • Length Filtering: Filter words based on a specified length.

Usage

go run main

The tool operates interactively, prompting the user for input values:

  • Single Letter: A single letter that must be present in the words.
  • 6-Character String: A string of 6 characters that the words can be composed of.
  • Word Length: (Optional) The exact length of the words to search for.

Environment Variables

The tool loads environment variables from a .env file. The primary variable used is:

  • WBLANG: Specifies the language dictionary to use (default is af-za).

How It Works

  1. Initialization: Loads environment variables from a .env file.
  2. Command Parsing: Parses user inputs to determine the operation mode.
  3. Word Search: Searches for matching words in the specified dictionary file.

Dictionary Files

The tool uses dictionary files located in the dictionaries/ directory. The language is specified by the WBLANG environment variable.

Dependencies

License

This project is licensed under the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
api command
cleaner command
importer command
parser command
internal
api
Package api of the server for the woordsoek
Package api of the server for the woordsoek
tui
woordsoek
Package woordsoek is used to lookup words based containing certain letters
Package woordsoek is used to lookup words based containing certain letters
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL