seqnumutil

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSequenceNumberFromConfig

func FindSequenceNumberFromConfig(path, fileExtension string, extensionName string) (int, error)

FindSequenceNumberFromConfig finds the file with the highest sequence number for an extension under configFolder named like <RunCommandName>.0.settings, <RunCommandName>.1.settings so on.

func IsSmallerThan

func IsSmallerThan(path string, num int) (bool, error)

IsSmallerThan returns true if the sequence number stored at path is smaller than the provided num. If no number is stored, returns true and no error.

func SaveSeqNum

func SaveSeqNum(path string, num int) error

SaveSeqNum replaces the stored sequence number in file, or creates a new file at path if it does not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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