Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
Expose access to Ops to avoid stringly typing downstream
Browse files Browse the repository at this point in the history
Signed-off-by: Silas Davis <[email protected]>
  • Loading branch information
Silas Davis committed Oct 9, 2019
1 parent 01d3d33 commit 3532253
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ require (
github.com/twitchyliquid64/golang-asm v0.0.0-20190126203739-365674df15fc
golang.org/x/sys v0.0.0-20190306220234-b354f8bf4d9e // indirect
)

go 1.13
4 changes: 4 additions & 0 deletions wasm/operators/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ func New(code byte) (Op, error) {
}
return op, nil
}

func Get(opcode byte) Op {
return ops[opcode]
}

0 comments on commit 3532253

Please sign in to comment.