Documentation ¶
Index ¶
- Constants
- func App() *cli.App
- func Create(path string) error
- func Editor(path string) error
- func Exec(command string) error
- func Exists(path string) bool
- func FormData() *formData
- func Input(prompt string) string
- func InputConfirm(prompt string) bool
- func InsertLine(path, newLine string) error
- func InsertLineAtIndex(path, newLine string, index int) error
- func List(dir string) []string
- func Mkdir(path string) error
- func Open(path string) error
- func Read(filePath string) (string, error)
- func ReadLines(filePath string) ([]string, error)
- func Remove(path string) error
- func RemoveAll(path string) error
- func Write(path string, text string) error
- func WriteAppend(path string, text string) error
- type Conf
- func (c Conf) Data() []byte
- func (c Conf) Del(key string) error
- func (c Conf) DirPath() string
- func (c Conf) Edit() error
- func (c Conf) Init() error
- func (c Conf) OverWrite(newconf any) error
- func (c Conf) Path() string
- func (c Conf) Print() error
- func (c Conf) Query(q string) string
- func (c Conf) QueryPrint(q string)
- func (c Conf) Set(key string, val any) error
- type DiscordMessage
- type Embed
- type EmbedAuthor
- type EmbedField
- type EmbedFooter
Constants ¶
View Source
const (
DefaultPerms = 0600
)
View Source
const VERSION = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
func InputConfirm ¶
func InsertLine ¶
func InsertLineAtIndex ¶
func Write ¶
Write writes content to a file. It will overwrite to the file if it already exists and create the file if it does not.
func WriteAppend ¶
WriteAppend writes content to a file. It will append to the file if it already exists and create the file if it does not.
Types ¶
type Conf ¶
type Conf struct { Id string // usually application name Dir string // usually os.UserConfigDir File string // usually config.yaml }
type DiscordMessage ¶
type Embed ¶
type Embed struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` Color int `json:"color,omitempty"` Fields []EmbedField `json:"fields,omitempty"` Author *EmbedAuthor `json:"author,omitempty"` Image map[string]string `json:"image,omitempty"` Thumbnail map[string]string `json:"thumbnail,omitempty"` Timestamp string `json:"timestamp,omitempty"` }
func (*Embed) EnforceLimits ¶
func (e *Embed) EnforceLimits()
type EmbedAuthor ¶
type EmbedField ¶
type EmbedFooter ¶
type EmbedFooter struct {}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.