Documentation ¶
Overview ¶
Package ptrfrom helps getting pointers when declaring literals in tests.
Example:
wantArtifactSpec := model.ArtifactSpec { Algorithm: ptrfrom.String("sha256"), Digest: ptrfrom.String("asdfqwer"), }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any ¶ added in v0.2.0
func Any[T any](v T) *T
Any helps get pointers from any type for test literals
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.