Skip to content

Commit

Permalink
Go formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed Jul 26, 2024
1 parent 7c8ee2f commit 4a6996d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion callbacks/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ Usage:
if err != nil {
// do something
}
*/
package callbacks

Expand Down
10 changes: 4 additions & 6 deletions engine/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@ Use this package if you have a Go application and want to enable extended functi
Examples of use cases could be stored procedures within a database, serverless functions, or
language-agnostic plugins.
Usage:
import (
"github.com/tarmac-project/wapc-toolkit/engine"
)
func main() {
// Create a new engine server.
server, err := engine.New(ServerConfig{})
if err != nil {
// do something
}
// Load the guest module.
err = server.LoadModule(engine.ModuleConfig{
Name: "my-guest-module",
Expand All @@ -38,20 +37,19 @@ Usage:
if err != nil {
// do something
}
// Lookup the guest module.
m, err := server.Module("my-guest-module")
if err != nil {
// do something
}
// Call the Hello function within the guest module.
rsp, err := m.Run("Hello", []byte("world"))
if err != nil {
// do something
}
}
*/
package engine

Expand Down

0 comments on commit 4a6996d

Please sign in to comment.