From 173520b42e1266687ee397302fada281d227b216 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Nov 2024 08:51:25 -0500 Subject: more work on importing Signed-off-by: Jeff Carr --- create.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'create.go') diff --git a/create.go b/create.go index 9752bb2..1e84b9a 100644 --- a/create.go +++ b/create.go @@ -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 -- cgit v1.2.3