Documentation
¶
Overview ¶
Example ¶
package main
import (
"fmt"
"os"
"github.com/Konstantin8105/errorf"
)
func main() {
err := errorf.Test("./errorf_test.go")
fmt.Fprintf(os.Stdout, "%v", err)
}
Output: ./errorf_test.go └──./errorf_test.go:12:6: not acceprable first letter: "Wrong Errorf"
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Test ¶
Test binary expression in file with filename and return error if first letter is not lower.
X: *ast.CallExpr {
. Fun: *ast.SelectorExpr {
. . X: *ast.Ident {
. . . Name: "fmt"
. . }
. . Sel: *ast.Ident {
. . . Name: "Error"
. . }
. }
. Args: []ast.Expr (len = 1) {
. . 0: *ast.BasicLit {
. . . Kind: STRING
. . . Value: "\"Hello, Golang\\n\""
. . }
. }
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.