-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
24 lines (20 loc) · 719 Bytes
/
main.go
File metadata and controls
24 lines (20 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main
import (
"writeup-finder.go/command"
_ "github.com/lib/pq" // Import PostgreSQL driver for database/sql
log "github.com/sirupsen/logrus"
)
// init configures the logrus logger format.
// It disables timestamps, level truncation, and full timestamps for cleaner log output.
func init() {
log.SetFormatter(&log.TextFormatter{
DisableTimestamp: true, // Remove timestamps from log output
DisableLevelTruncation: true, // Prevent truncation of log levels
FullTimestamp: false, // Do not use full timestamps
})
}
// main is the entry point of the application.
// It calls the Execute function from the command package to start the application.
func main() {
command.Execute()
}