package
0.0.0-20230908152114-eb2889b8f23b
Repository: https://github.com/joshuabl97/urlshort.git
Documentation: pkg.go.dev
# Functions
adds a single shortcut to the db.
adds multiple endpoints to the DB.
returns false if the endpoint is not found.
deletes a row from the database.
returns a map of all the endpoints stored in the database.
returns a *sql.DB and an error you still need to close the db!!! i.e db, _ := getDb() defer db.Close().
parses yaml and returns []data.Endpoint.
changes the URL to the newURL.