Skip to content

Commit

Permalink
Create helper.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelfantasy authored Jun 21, 2023
1 parent 474ba63 commit 224debd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions helper/helper.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package helper

import "fmt"
import "encoding/json"

func OutputRawJSON(contents []byte) {
var result map[string]any
jsonError := json.Unmarshal(contents, &result)
if jsonError == nil {
fmt.Println("== OutputRawJSON >> ==========================================")
fmt.Println(result)
fmt.Println("== OutputRawJSON << ==========================================")
}
}

0 comments on commit 224debd

Please sign in to comment.