Skip to content

Commit

Permalink
feat: Add logging helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Apr 4, 2024
1 parent 5e58833 commit e46c5f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/logging.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package src

import "fmt"

func Info(message string) {
if debug || verbose {
fmt.Printf("INFO: %s\n", message)
}
}

func Debug(message string) {
if debug {
fmt.Printf("DEBUG: %s\n", message)
}
}

0 comments on commit e46c5f1

Please sign in to comment.