package
0.0.0-20230224013745-aa5bd6bf7a18
Repository: https://github.com/katzien/go-structure-examples.git
Documentation: pkg.go.dev

# Functions

AddBeer adds a new beer to the cellar.
AddBeerReview adds a new review for a beer.
GetBeer returns a beer from the cellar.
GetBeerReviews returns all reviews for a beer.
GetBeers returns the cellar.
No description provided by the author
No description provided by the author
PopulateBeers populates the Cellar variable with Beers.
PopulateReviews populates the Reviews variable with Reviews.

# Constants

CollectionBeer identifier for JSON collection about beers.
CollectionReview identifier for JSON collection about reviews.
JSON will store data in JSON files saved on disk.
JSONDataLocation defines where the JSON data files will be saved.
Memory will store data in memory.
ServerAddr defines the http host and port of the beer server.

# Structs

Beer defines the properties of a beer.
Review defines the properties of a beer review.
StorageJSON is the data storage layered using JSON file.
StorageMemory data storage layered save only in memory.

# Interfaces

Storage represents all possible actions available to deal with data.

# Type aliases

StorageType defines available storage types.