lastbuild

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuessNext

func GuessNext() (uint, error)

GuessNext returns the approximated next build ID to use. It calculates this by reading the build ID file, bumping it by +1, then releasing the file lock.

This function does not mutate the next value.

This means the guess from this function is not guaranteed to be the same value as returned by Next, so the return from this function should only be used to give approximations to the user.

func Next

func Next() (uint, error)

Next returns the next build ID to use. It calculates this by locking the build ID file, reading its current value, bumping it by +1, then writing the new value, and then releasing the file lock.

func Path

func Path() (string, error)

Path returns the path to the file that contains the last build ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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