Skip to content

Commit

Permalink
blog: add type alias to posts type
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 15, 2024
1 parent 9368d86 commit c963e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ type post struct {
contents []byte
date time.Time
}

type posts = *orderedmap.OrderedMap[string, post]
type path = string
type posts = *orderedmap.OrderedMap[path, post]

func must1[T any](v T, err error) T {
must(err)
Expand Down

0 comments on commit c963e20

Please sign in to comment.