config

package
v0.0.0-...-b679ee6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config holds all stuff related to slk configuration ($HOME/.slk)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Channel     string `toml:"channel"`
	ChannelName string `toml:"channel-name"`
	Token       string `toml:"token"`
	Username    string `toml:"username"`

	Users map[string]string `toml:"users"`

	ChannelTs map[string]string `toml:"channel-ts"`
}

Config holds slk configuration

func Read

func Read() (*Config, error)

Read reads config from file ($HOME/.slk)

func (*Config) Read

func (c *Config) Read() error

Read reads config from file ($HOME/.slk)

func (*Config) Write

func (c *Config) Write() error

Write writes config to file ($HOME/.slk)

Jump to

Keyboard shortcuts

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