Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ ExampleSub
Function
ExampleSub
errors/example_test.go:7–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
var
ErrInvalidKey = errors.New(
"invalid key"
)
6
7
func
ExampleSub() {
8
err := sign()
9
if
err != nil {
10
err = errors.Sub(ErrInvalidKey, err)
11
return
12
}
13
}
14
15
func
ExampleSub_return() {
16
err := sign()
Callers
nothing calls this directly
Calls
2
Sub
Function · 0.92
sign
Function · 0.70
Tested by
no test coverage detected