Yep Cooking more Carrots

So I made a second batch of the carrots. It takes about 2 hrs plus. Cutting the vegetables and then browning the carrots and starting the braise takes awhile. So today I was going to continue on the tutorial for Go building a web framework and decided that a framework would be overkill. I decided that I would start coding. I created a base web server and added a load function that would take a CSV file of dvd titles and load them to a sqlite3 database. I had earlier created a test data set so I would not be working with a 53MB file to begin with.  Next step will be to create a load of my collection of dvds.

It is very easy to create a web server in Go. The following is an example from golang docs wiki


package main

import (
    "fmt"
    "net/http"
)

func handler(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
}

func main() {
    http.HandleFunc("/", handler)
    http.ListenAndServe(":8080", nil)
}

I continued with a couple more Great Courses lectures and some more Blender training.