Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
GitHub / hahaashton1 / go-simple-rest-api
JSON API: https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahaashton1%2Fgo-simple-rest-api
Stars: 0
Forks: 0
Open Issues: 0
License: None
Language:
Repo Size: 0 Bytes
Dependencies:
12
Created: over 1 year ago
Updated: over 1 year ago
Last pushed: over 1 year ago
Last synced: about 1 year ago
Files
Loading...
Readme
Loading...
Dependencies
go.mod
go
- Artiststring `json:"artist"`
- IDstring `json:"id"`
- Pricefloat64 `json:"price"`
- Titlestring `json:"title"`
- c.IndentedJSON(http.StatusOK, albums)
- funcgetAlbums(c*gin.Context) {
- package main
- typealbumstruct {
- varalbums=[]album {
- {ID:"1",Title:"BlueTrain",Artist:"JohnColtrane",Price: 56.99},
- {ID:"2",Title:"Jeru",Artist:"GerryMulligan",Price: 17.99},
- {ID:"3",Title:"SarahVaughanandCliffordBrown",Artist:"SarahVaughan",Price: 39.99},