Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2025-3938: Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder

lazy

package
v2.23.1Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License:AGPL-3.0Imports:2Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Overview

Package lazy provides a lazy value implementation.It's useful especially in global variable initialization to avoidslowing down the program startup time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeValue

type Value[Tany] struct {// contains filtered or unexported fields}

funcNew

func New[Tany](fn func() T) *Value[T]

New creates a new lazy value with the given load function.

func (*Value[T])Load

func (v *Value[T]) Load() T

typeValueWithErroradded inv2.22.0

type ValueWithError[Tany] struct {// contains filtered or unexported fields}

funcNewWithErroradded inv2.22.0

func NewWithError[Tany](fn func() (T,error)) *ValueWithError[T]

NewWithError allows you to provide a lazy initializer that can fail.

func (*ValueWithError[T])Loadadded inv2.22.0

func (v *ValueWithError[T]) Load() (T,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp