privateca

package
v1.120.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasHTTPCode

func HasHTTPCode(err error, code int) bool

HasHTTPCode returns true if the given error is an HTTP response with the given code.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the given error is an HTTP 404.

func LazyPtr

func LazyPtr[T comparable](v T) *T

LazyPtr returns a pointer to v, unless it is the empty value, in which case it returns nil. It is essentially the inverse of ValueOf, though it is lossy because we can't tell nil and empty apart without a pointer.

func ValueOf

func ValueOf[T any](p *T) T

todo acpana: add to factor out to top level package todo acpana: begin

Types

This section is empty.

Jump to

Keyboard shortcuts

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