Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

24
app/tool/bgr/model.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"fmt"
"go/ast"
"strings"
)
type lint struct {
s *script
fn func(curDir string, f *ast.File, node ast.Node) bool
}
type script struct {
dir string
ts []string // type slice
v string
l string
d string
}
func (s script) String() string {
return fmt.Sprintf("script path: %s, type: %s, value: %s, level: %s", s.dir, strings.Join(s.ts, "."), s.v, s.l)
}