Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Sep 20, 2018
1 parent a6c4e1c commit 48c6d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import (
)

func main() {
box := packr.NewBox("./templates")
box := packr.New("myBox", "./templates")

s := box.String("admin/index.html")
fmt.Println(s)
Expand Down Expand Up @@ -103,7 +103,7 @@ import (
)

func main() {
box := packr.NewBox("./templates")
box := packr.New("someBoxName", "./templates")

http.Handle("/", http.FileServer(box))
http.ListenAndServe(":3000", nil)
Expand Down

0 comments on commit 48c6d45

Please sign in to comment.