tempfile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tempfile resolves pre-seeded temperatures from .temp.json files.

Index

Constants

View Source
const FileName = ".temp.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func Load

func Load(dir string) (*Resolver, error)

Load reads a .temp.json from dir. Returns nil, nil if the file does not exist.

func (*Resolver) Resolve

func (r *Resolver) Resolve(relPath string) (float64, bool)

Resolve returns the pre-seeded temperature for a relative file path.

Jump to

Keyboard shortcuts

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