Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Input ¶
Input mimics Python's input function, which outputs a prompt and takes bytes from stdin until a newline and returns a string.
func SaveServerDB ¶
SaveServerDB saves the provided ServerDB struct into the appropriate file.
func SecureInput ¶
SecureInput requests takes user input, but none of characters typed appear in the terminal window.
Types ¶
type ServerDB ¶
type ServerDB struct { DefaultServer string `json:"default"` Servers map[string]struct { Username string `json:"username"` Password string `json:"password"` } `json:"servers"` }
func NewServerDB ¶
func NewServerDB() ServerDB
func ReadServerDB ¶
ReadServerDB loads the server database into a ServerDB struct and returns the result.
Click to show internal directories.
Click to hide internal directories.