go-erorr/errorf.go

13 lines
148 B
Go
Raw Normal View History

2021-11-19 23:41:30 +00:00
package fck
import (
"fmt"
)
func Errorf(format string, a ...interface{}) error {
2021-11-23 07:42:46 +00:00
var s string = fmt.Sprintf(format, a...)
2021-11-19 23:41:30 +00:00
return Error(s)
}