diff options
Diffstat (limited to 'create.go')
| -rw-r--r-- | create.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -3,19 +3,16 @@ package main import ( "errors" "fmt" - "io/ioutil" "math/rand" - "net/http" "time" - "github.com/google/uuid" pb "go.wit.com/lib/protobuf/virtbuf" - "go.wit.com/log" ) // attempts to create a new virtual machine -func create(w http.ResponseWriter, r *http.Request) (string, error) { +/* +func oldcreate(w http.ResponseWriter, r *http.Request) (string, error) { msg, err := ioutil.ReadAll(r.Body) // Read the body as []byte if err != nil { result := fmt.Sprintf("ReadAll() error =", err) @@ -84,6 +81,7 @@ func create(w http.ResponseWriter, r *http.Request) (string, error) { fmt.Fprintln(w, "START=OK") return result, nil } +*/ // for now, because sometimes this should write to stdout and // sometimes to http socket, it returns a string |
