Skip to content

Commit

Permalink
update mod
Browse files Browse the repository at this point in the history
  • Loading branch information
likfees committed Jan 1, 2024
1 parent d002fae commit 45518bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
10 changes: 10 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module github/dalefeng/workflows-demo

go 1.19

require github.com/json-iterator/go v1.1.12

require (
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
)
11 changes: 9 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
package main

import "fmt"
import (
"fmt"
jsoniter "github.com/json-iterator/go"
)

func main() {
fmt.Println("hello")
m := map[string]string{
"hello": "world",
}
marshal, _ := jsoniter.Marshal(m)
fmt.Println(marshal)
}

0 comments on commit 45518bd

Please sign in to comment.