all repos — breadsite @ e2a4208da37b8e81e7033f183b6a381a28665134

Unnamed repository; edit this file 'description' to name the repository.

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,
	)
}