Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdee committed Dec 5, 2022
1 parent a20dc5d commit 61effac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ package main
import "github.com/julyskies/strenco"

func main() {
encoded, encodingError := strenco.Encode("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")
plaintext := "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
encoded, encodingError := strenco.Encode(plaintext)
if encodingError != nil {
println(encodingError.Error())
} else {
Expand All @@ -39,7 +40,8 @@ package main
import "github.com/julyskies/strenco"

func main() {
decoded, decodingError := strenco.Decode(`%%7z;1tsk1JA!NbAFwzj j&{r(3#"+L%m*{<D%Wrh@iyB(qM!eG)>B/ox/%%`)
encoded := `%%7z;1tsk1JA!NbAFwzj j&{r(3#"+L%m*{<D%Wrh@iyB(qM!eG)>B/ox/%%`
decoded, decodingError := strenco.Decode(encoded)
if decodingError != nil {
println(decodingError.Error())
} else {
Expand Down

0 comments on commit 61effac

Please sign in to comment.