-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.go
45 lines (37 loc) · 901 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package main
/*
* codelines - A useful code line count software
*
* @github https://github.com/super-l
* @author superl <86717375@qq.com>
*/
import (
"encoding/json"
"fmt"
"github.com/gookit/color"
"github.com/super-l/codelines/core"
)
func showBanner() {
banner := `
codelines v1.0
Created by superl[忘忧草安全] QQ: 86717375
_ _ _ _
| | ( ) (_)
___ ___ __| | ___|/| |_ _ __ ___ ___
/ __/ _ \ / _' |/ _ \ | | | '_ \ / _ \/ __|
| (_| (_) | (_| | __/ | | | | | | __/\__ \
\___\___/ \__,_|\___| |_|_|_| |_|\___||___/
`
color.Green.Println(banner)
}
func main(){
showBanner()
config, err := core.LoadConfigData()
if err != nil {
fmt.Println(err.Error())
return
}
result := core.GetResultInfo(config)
resultJson, _ := json.Marshal(result)
fmt.Println(string(resultJson))
}