diff options
| author | Jeff Carr <[email protected]> | 2024-11-01 08:51:25 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-01 08:51:25 -0500 |
| commit | 173520b42e1266687ee397302fada281d227b216 (patch) | |
| tree | 7bd9282dee5c175a71dc5420b808471ccb988874 /create.go | |
| parent | 0a28c45a6cb885feeb14a49cba2c9b956bda665a (diff) | |
more work on importing
Signed-off-by: Jeff Carr <[email protected]>
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 |
