utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateFileHash

func CalculateFileHash(filename string) (string, error)

CalculateFileHash computes the SHA-1 hash of a specified file's contents or the first file in a zip archive. Returns the hash as a hexadecimal string or an error if hash computation fails.

func CloseDB

func CloseDB() error

func FindByFilename

func FindByFilename(filename string) (*models.Game, error)

func FindByHash

func FindByHash(hash string) (*models.Game, error)

func InitDB

func InitDB(databasePath string) (*sql.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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