config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup()

Setup 初期設定

Types

type ColorScheme

type ColorScheme struct {
	Accent1   string
	Accent2   string
	Accent3   string
	BoxFg     string
	UserName  string
	UserID    string
	Separator string
	Reply     string
	Hashtag   string
	Fav       string
	RT        string
	Verified  string
	Protected string
	Follow    string
	Block     string
	Mute      string
}

ColorScheme 配色

type Configuration

type Configuration struct {
	Credentials Credentials
	Color       ColorScheme
	Default     DefaultValue
}

Configuration 設定情報

func (*Configuration) Load

func (cfg *Configuration) Load() error

Load ファイル読み込み

func (*Configuration) Remove

func (cfg *Configuration) Remove()

Remove ファイル削除

func (*Configuration) Save

func (cfg *Configuration) Save()

Save ファイル保存

type Credentials

type Credentials struct {
	Token  string
	Secret string
}

Credentials トークン情報

type DefaultValue

type DefaultValue struct {
	Counts     string
	Prompt     string
	DateFormat string
	TimeFormat string
}

DefaultValue デフォルト値

Jump to

Keyboard shortcuts

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