Skip to content

Commit

Permalink
log time
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricedesaxe committed Jul 18, 2024
1 parent b115b64 commit d2c3f06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"regexp"
"sort"
"strings"
"time"
)

type Flags struct {
Expand Down Expand Up @@ -39,6 +40,8 @@ func assert(condition bool, msg string) {
}

func templCSSSort(flags Flags) {
start := time.Now()

// find all .templ files in directory and subdirectories
var files []string
var err error
Expand Down Expand Up @@ -137,6 +140,8 @@ func templCSSSort(flags Flags) {
log.Fatal(err)
}
}

log.Println("Done in", time.Since(start))
}

func removeDuplicates(slice []string) []string {
Expand Down

0 comments on commit d2c3f06

Please sign in to comment.