config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTOMLFilename

func LoadTOMLFilename(filename string) string

Types

type Config

type Config struct {
	SlackURL       string
	Token          string
	Channel        string
	SnippetChannel string
	ChannelID      string
	Username       string
	IconEmoji      string
	Duration       time.Duration
}

func NewConfig

func NewConfig() *Config

func (*Config) LoadEnv

func (c *Config) LoadEnv() error

func (*Config) LoadTOML

func (c *Config) LoadTOML(filename string) error

Jump to

Keyboard shortcuts

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