package
0.0.0-20231124095642-5e89bc7031ac
Repository: https://github.com/devpies/saas-core.git
Documentation: pkg.go.dev

# Functions

LoadGoldenFile loads json from golden files directory and returns the json as string.
LoadJSON loads a json file from the golden files directory and returns the json as string.
MarshalJSON simple helper that marshals data into a JSON string.
NewDatabaseClient returns a DatabaseClient and a close method to clean up the setup connection.
NewGoldenConfig creates a new GoldenConfig manager.
SaveGoldenFile saves a data structure as json to a file in the golden files directory.
SaveJSON saves a data structure as json to a file in the golden files directory.

# Constants

MockUUID represents a mock uuid.

# Variables

MockCtx represents an empty context.

# Structs

DatabaseClient sets up a database and enables role switching.
GoldenConfig manages golden file updates.