Skip to content

Commit

Permalink
Merge pull request #180 from ericgregory/update-crud
Browse files Browse the repository at this point in the history
chore(examples): small consistency and correctness fixes to http-keyvalue-crud
  • Loading branch information
joonas authored Jan 27, 2025
2 parents d67f9e0 + 5c686b3 commit f8b1085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/component/http-keyvalue-crud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ cd examples/component/http-keyvalue-crud

In addition to the standard elements of a Go project, the example directory includes the following files and directories:

- `build/`: Target directory for compiled `.wasm` binaries
- `gen/`: Target directory for Go bindings of [interfaces](https://wasmcloud.com/docs/concepts/interfaces)
- `wit/`: Directory for WebAssembly Interface Type (WIT) packages that define interfaces
- `/build`: Target directory for compiled `.wasm` binaries
- `/gen`: Target directory for Go bindings of [interfaces](https://wasmcloud.com/docs/concepts/interfaces)
- `/wit`: Directory for WebAssembly Interface Type (WIT) packages that define interfaces
- `bindings.wadge.go`: Automatically generated test bindings
- `wadm.yaml`: Declarative application manifest
- `wasmcloud.lock`: Automatically generated lockfile for WIT packages
Expand Down
4 changes: 2 additions & 2 deletions examples/component/http-keyvalue-crud/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:generate go run go.bytecodealliance.org/cmd/wit-bindgen-go generate --world hello --out gen ./wit
//go:generate go run go.bytecodealliance.org/cmd/wit-bindgen-go generate --world component --out gen ./wit
package main

import (
Expand Down Expand Up @@ -167,5 +167,5 @@ func errResponseJSON(w http.ResponseWriter, code int, message string) {
}

// Since we don't run this program like a CLI, the `main` function is empty. Instead,
// we call the `handleRequest` function when an HTTP request is received.
// we call handler functions when an HTTP request is received.
func main() {}

0 comments on commit f8b1085

Please sign in to comment.