package
0.0.0-20240414000618-a9d7411a4dd0
Repository: https://github.com/dduclayan/gophercises.git
Documentation: pkg.go.dev
# Packages
Exercise - https://github.com/gophercises/urlshort.
# Functions
JSONHandler will parse the provided JSON and then return a http.HandlerFunc (which also implements http.Handler) that will attempt to map any paths to their corresponding URL.
MapHandler will return a http.HandlerFunc (which also implements http.Handler) that will attempt to map any paths (keys in the map) to their corresponding URL (values that each key in the map points to, in string format).