config

package
Version: v0.0.0-...-5d55774 Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config contains the code to read user's configuration. Inspired by https://benaiah.me/posts/configuring-go-apps-with-toml/

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Buffer: BufferOptions{
		BufferSize: 10,
	},
}

Functions

func GetDefaultConfigDir

func GetDefaultConfigDir() (string, error)

Types

type BufferOptions

type BufferOptions struct {
	AccessToken string
	ProfileIDs  []string
	BufferSize  int
}

type Config

type Config struct {
	Buffer BufferOptions
}

func LoadConfig

func LoadConfig(configFile string) (*Config, error)

func LoadDefaultConfig

func LoadDefaultConfig() (*Config, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL