utils

package
v0.0.0-...-8e6cb86 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DevVersion = "dev"

Variables

View Source
var Version = version

Functions

func FromGo

func FromGo(v interface{}) starlark.Value

func FromStarlark

func FromStarlark(v starlark.Value) interface{}

func HashCache

func HashCache[T any](path, h string, do func() (T, error)) (T, error)

func IsDevVersion

func IsDevVersion() bool

Types

type HashCacheData

type HashCacheData[T any] struct {
	Hash string
	Data T
}

Jump to

Keyboard shortcuts

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