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

Commit 3532253

Browse files
author
Silas Davis
committed
Expose access to Ops to avoid stringly typing downstream
Signed-off-by: Silas Davis <[email protected]>
1 parent 01d3d33 commit 3532253

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ require (
55
github.com/twitchyliquid64/golang-asm v0.0.0-20190126203739-365674df15fc
66
golang.org/x/sys v0.0.0-20190306220234-b354f8bf4d9e // indirect
77
)
8+
9+
go 1.13

wasm/operators/op.go

+4
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,7 @@ func New(code byte) (Op, error) {
8585
}
8686
return op, nil
8787
}
88+
89+
func Get(opcode byte) Op {
90+
return ops[opcode]
91+
}

0 commit comments

Comments
 (0)