Browse Source

Add NewError -> Result with no data

pull/1780/head
Jae Kwon 9 years ago
parent
commit
06a0ac8188
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      types/result.go

+ 7
- 0
types/result.go View File

@ -35,3 +35,10 @@ func NewResultOK(data []byte, log string) Result {
Log: log, Log: log,
} }
} }
func NewError(code CodeType, log string) Result {
return Result{
Code: code,
Log: log,
}
}

Loading…
Cancel
Save