backend/net.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
package main
import (
"fmt"
"net/http"
)
func (playingInfo *PlayingInfo) handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(
w,
"<p>%s</p><p>%s</p><p>%s</p><a href=\"%s\"><img src=\"%s\"></a>",
playingInfo.artistName,
playingInfo.recordingName,
playingInfo.releaseName,
playingInfo.recordingUrl,
playingInfo.coverUrl,
)
}
|