Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveAuthData ¶
func SaveAuthData(data AuthData)
SaveAuthData - save authentication data to auth.json file data : input value
Types ¶
type AuthData ¶
type AuthData struct { Login string `json:"login"` Password string `json:"password"` Server string `json:"server"` }
AuthData - structure which describe authentication data which user entered Login : login of user Password : password of user Server : IMAP server which was chosen by user
func GetAuthData ¶
func GetAuthData() AuthData
GetAuthData open file 'auth.json' if exist and return data from it if not exit create it and put void auth data
Click to show internal directories.
Click to hide internal directories.