errorf

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 6 Imported by: 0

README

errorf

lower first letter

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

func Test(filename string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL