Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# go-crossplane
An unofficial Go port of the NGINX config/JSON converter [crossplane](https://github.com/nginxinc/crossplane).

#### 修复build后输入到文件为字符串的问题
## Parse
This is an example that takes a path to an NGINX config file, converts it to JSON, and prints the result to stdout.
```go
Expand All @@ -11,7 +11,7 @@ import (
"fmt"
"os"

"github.com/aluttik/go-crossplane"
"github.com/HEFUHUI/go-crossplane"
)

func main() {
Expand Down Expand Up @@ -43,7 +43,7 @@ import (
"io/ioutil"
"os"

"github.com/aluttik/go-crossplane"
"github.com/HEFUHUI/go-crossplanee"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func isSpace(s string) bool {
}

func repr(s string) string {
q := fmt.Sprintf("%q", s)
q := fmt.Sprintf("%s", s)
for _, char := range s {
if char == '"' {
q = strings.ReplaceAll(q, `\"`, `"`)
Expand Down