Documentation ¶
Index ¶
- Variables
- func Check(err error)
- func ConnectPostgreSQL(host, port, ssl, database, username, password string) *sql.DB
- func Decrypt(text string, key []byte) string
- func Encrypt(text string, key []byte) string
- func FormatTimeDay(time time.Time) string
- func FormatTimeDayHour(time time.Time) string
- func FormatTimeDayName(time time.Time) string
- func FormatTimeDaySecond(time time.Time) string
- func FormatTimeMonthName(time time.Time) string
- func FormatTimeYear(time time.Time) string
- func GenerateKey(key string) []byte
- func Hash(input string) string
- func UUID() string
Constants ¶
This section is empty.
Variables ¶
View Source
var LogInfo = true
LogInfo log only error or everything
Functions ¶
func ConnectPostgreSQL ¶
ConnectPostgreSQL Connection to postgresql database
func FormatTimeDay ¶
FormatTimeDay Format time.Time to dd-MM-yyyy
func FormatTimeDayHour ¶
FormatTimeDayHour Format time.Time to dd-MM-yyyy hh:mm
func FormatTimeDayName ¶
FormatTimeDayName Get the name of the day
func FormatTimeDaySecond ¶
FormatTimeDaySecond Format time.Time to dd-MM-yyyy hh:mm:ss
func FormatTimeMonthName ¶
FormatTimeMonthName Get the name of the day
func FormatTimeYear ¶
FormatTimeYear Format time.Time to yyyy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.