Documentation ¶
Index ¶
- func CreateTLSCertAndKey(certFile string, keyFile string) (err error)
- func CreateUUId() string
- func Encrypt(plaintext string) string
- func GoChatDir() string
- func IsQuit() bool
- func Quit() <-chan struct{}
- func RmExtName(filename string) string
- func SetQuit()
- func Tomorrow() time.Time
- func UserHomeDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTLSCertAndKey ¶
func CreateUUId ¶
func CreateUUId() string
CreateUUId creates a random UUID with from RFC 4122 adapted from http://github.com/nu7hatch/gouuid
func GoChatDir ¶
func GoChatDir() string
GoChatDir returns the directory of the current project, such as "/home/user/project/gochat*".
func Tomorrow ¶
Tomorrow returns an object of type time.Time whose value is 00:00:00.000 of the next day.
func UserHomeDir ¶
func UserHomeDir() string
UserHomeDir returns the home directory of the current user, such as "/home/user" in Unix-like OS.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.