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

Commit

Permalink
UnpackBytes function to delete registered data (#65)
Browse files Browse the repository at this point in the history
Add possibility to reset registered data for development mode, reset PackBytes and read from local storage
  • Loading branch information
dmitriyminer authored and markbates committed Jul 22, 2018
1 parent d307328 commit 147bee9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packr.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ func PackJSONBytes(box string, name string, jbb string) error {
PackBytes(box, name, bb)
return nil
}

// UnpackBytes unpacks bytes for specific box.
func UnpackBytes(box string) {
gil.Lock()
defer gil.Unlock()
delete(data, box)
}

0 comments on commit 147bee9

Please sign in to comment.