bhutch29 / abv

Bar inventory tracking system
MIT License
6 stars 2 forks source link

Cache images locally so menu works without internet #44

Closed bhutch29 closed 6 years ago

bhutch29 commented 6 years ago

Save to known folder with file name = everything after last / in url

bhutch29 commented 6 years ago

package main

import ( "log" "net/http" )

func main() { fs := http.FileServer(http.Dir("static")) http.Handle("/", fs)

log.Println("Listening...") http.ListenAndServe(":3000", nil) }

bhutch29 commented 6 years ago

img src="/images/picture.jpg"