package
0.0.0-20250408154947-ad30c186a480
Repository: https://github.com/greymatter-io/nautls.git
Documentation: pkg.go.dev
# Functions
MustAbsolutePath returns the absolute path to a file or fails the provided test.
MustGenerate generates and returns a random value of a type or fails a test.
MustGenerateBytes generates a random slice of bytes or fails a test.
MustGenerateHex generates a random hexidecimal string or fails a test.
MustGenerateHexes generates a random slice of hexidecimal strings or fails a test.
MustGenerateInt generates a random integer or fails a test.
MustGenerateString generates a random string or fails a test.
MustGenerateStrings generates a random slice of strings or fails a test.
MustGenerateUint generates a random integer or fails a test.
MustGenerateURL generates a random *url.URL or fails a test.
MustLoadX509KeyPair loads a tls.Certificate from PEM encoded key pair files or fails the test.
MustRead reads the content of a file or fails the provided test.
MustRelativePath returns the relative path for the current working directory or fails the test.
MustServe returns a server listening on the provided address with the provided TLS configuration or fails the test.
MustTemplate returns the provided template rendered with the values or fails the test.
# Variables
Random provides a random source for tests.