adjust

package
v0.0.0-...-917435a Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommaSeparatedParam

func CommaSeparatedParam(context *cli.Context, paramName string) []string

func DefaultHeaders

func DefaultHeaders(userToken string) *http.Header

func Error

func Error(format string, v ...interface{})

func Fail

func Fail(message string)

func Faile

func Faile(err error)

func Failf

func Failf(format string, v ...interface{})

func Notify

func Notify(message string)

func PrintConfig

func PrintConfig(buf *bufio.Writer, conf *Config)

func Success

func Success()

Types

type Config

type Config struct {
	UserToken string
	AppTokens []string
	AppToken  string
}

func NewConfig

func NewConfig(c *cli.Context) *Config

func ReadConfig

func ReadConfig(configFilename string) *Config

func (*Config) WriteConfig

func (config *Config) WriteConfig(configFilename string) *Config

type Settings

type Settings struct {
	ConfigFilename string
	URLScheme      string
	URLHost        string
}

func NewSettings

func NewSettings() *Settings

Jump to

Keyboard shortcuts

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