Affected by GO-2024-3228
and 3 other vulnerabilities
GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
GO-2025-3921: Coder accepts an APIKey beyond the linked OIDC expiry if there is no refresh token in github.com/coder/coder
GO-2025-3938: Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder
GO-2025-4182: Coder logs sensitive objects unsanitized in github.com/coder/coder

The highest tagged major version is
v2.
package
Version:
v0.27.3
Opens a new window with list of versions in this module.
Published: Aug 1, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ptr contains some utility methods related to pointers.
NilOrEmpty returns true if s is nil or the empty string.
func NilOrZero[T number](v *T) bool
NilOrZero returns true if v is nil or 0.
func NilToDefault[T any](s *T, def T) T
NilToDefault coalesces a nil value to the provided default value.
func NilToEmpty[T any](s *T) T
NilToEmpty coalesces a nil value to the empty value.
Ref returns a reference to v.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.