Help us shape the future of Go! Take the 2026 Go Developer Survey

update

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package update checks public release metadata without credentials or usage events.

Index

Constants

View Source
const (
	Timeout  = 500 * time.Millisecond
	Releases = "https://github.com/536tech/datatf/releases/tag/"
)

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, current, path string, now time.Time) string

Check returns a newer stable version, or an empty string when no notice is available. A cache failure disables the check. Network failures are cached for 24 hours.

Types

This section is empty.

Jump to

Keyboard shortcuts

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