Documentation
¶
Overview ¶
Package util defines a few commonly used utility functions.
Index ¶
- func Action(f string, argv ...interface{}) string
- func Bold(f string, argv ...interface{}) string
- func Italic(f string, argv ...interface{}) string
- func ReadFile(file string, v interface{}, compressed bool) error
- func Underline(f string, argv ...interface{}) string
- func WriteFile(file string, v interface{}, compressed bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
Action returns the given, formatted message as a user action. E.g.: /me <something something>
func ReadFile ¶
ReadFile loads the, optionally compressed, contents of the given file and unmarshals it into the specified value v.
This is a utility function which can be used by plugins to load custom configuration info or data from disk.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.