util

package
v0.0.0-...-7be24de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTLSCertAndKey

func CreateTLSCertAndKey(certFile string, keyFile string) (err error)

func CreateUUId

func CreateUUId() string

CreateUUId creates a random UUID with from RFC 4122 adapted from http://github.com/nu7hatch/gouuid

func Encrypt

func Encrypt(plaintext string) string

func GoChatDir

func GoChatDir() string

GoChatDir returns the directory of the current project, such as "/home/user/project/gochat*".

func IsQuit

func IsQuit() bool

func Quit

func Quit() <-chan struct{}

func RmExtName

func RmExtName(filename string) string

func SetQuit

func SetQuit()

func Tomorrow

func Tomorrow() time.Time

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL