gm

package module
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

README

go-modules

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginGormTx

func BeginGormTx() *gorm.DB

func InitGorm

func InitGorm(host string, port int64, user, password, db_name string) (err error)

func NewGormSession

func NewGormSession() *gorm.DB

func ReadFileBytes

func ReadFileBytes(filePath string) ([]byte, error)

func ReadFileHash

func ReadFileHash(data []byte) (string, error)

func ValidateJsonUnmarshal

func ValidateJsonUnmarshal(data []byte, v any) error

func ValidateStruct

func ValidateStruct(v any) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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