/usr/share/gocode/src/github.com/tendermint/go-wire/expr/util.go is in golang-github-tendermint-go-wire-dev 0~20161027~0git287d8ca-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | package expr
import (
"strings"
)
func Compile(exprStr string) ([]byte, error) {
exprObj, err := ParseReader("", strings.NewReader(exprStr))
if err != nil {
return nil, err
}
bz, err := exprObj.(Byteful).Bytes()
if err != nil {
return nil, err
}
return bz, err
}
|