Documentation ¶
Overview ¶
The config package holds configuration-related operations and structures
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server struct { IP string // IP address for the server Port int // Listening port for the server } Log struct { Directory string // Directory path where logs will be stored } Blacklist struct { Keywords []string // List of blacklisted words } }
Config is a struct that hold the configuration settings.
func LoadConfig ¶
LoadConfig reads a TOML file located at 'path' and decodes it into a Config object. It returns the pointer to the created Config structure if successful; otherwise, it returns an error.
Click to show internal directories.
Click to hide internal directories.