Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
scuwan committed Dec 5, 2023
1 parent ac8e6d5 commit d394809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activation/nipost_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const (
postFilename = "post.bin"
)

func SavePost(dir string, post *types.Post) error {
return savePost(dir, post)
}

func write(path string, data []byte) error {
tmpName := fmt.Sprintf("%s.tmp", path)
tmp, err := os.Create(tmpName)
Expand Down

0 comments on commit d394809

Please sign in to comment.