config

package
v0.0.0-...-b0a7dda Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DiscordCommandPrefix string
	DiscordBotToken      string
	RestEnabled          bool
	RestGinRelease       bool
	RestHostname         string
}

func NewConfig

func NewConfig() (*Config, error)

NewConfig creates a new Config object and returns it along with any error encountered.

No parameters. Returns *Config and error.

func (*Config) String

func (c *Config) String() string

String returns the JSON representation of the Config struct.

No parameters. Returns a string.

Jump to

Keyboard shortcuts

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