utils

package
v1.0.70 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

func CheckFileExists

func CheckFileExists(filepath string) bool

func CreateFolder

func CreateFolder(folderPath string) error

func GetAPIKeyFromContext

func GetAPIKeyFromContext(ctx context.Context) (*string, error)

func MoveFile

func MoveFile(sourcePath, destPath string) error

func RandStringBytes

func RandStringBytes(n int) string

func ReadLastNBtyesFromFile

func ReadLastNBtyesFromFile(fname string, nbytes int64) (string, error)

func StructToPBStruct

func StructToPBStruct(a interface{}, b interface{})

func ToJSON

func ToJSON(a interface{}) string

func TrackTime

func TrackTime(start time.Time, name string)

Types

type SSMProvider

type SSMProvider struct{}

func (SSMProvider) GetModName

func (p SSMProvider) GetModName(_ context.Context, modReference string) (*resolver.ModName, error)

func (SSMProvider) ModVersionsWithDependencies

func (p SSMProvider) ModVersionsWithDependencies(_ context.Context, modID string) ([]resolver.ModVersion, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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