Skip to content

joechung2008/json-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-go

JSON Parser ported from TypeScript to Go 1.25.0

License

MIT

Reference

json.org

Common Go Commands

Build the project

go build ./...

Lint code

To lint your Go code for common issues, use golangci-lint:

golangci-lint run ./...

Format code

go fmt ./...

Run tests

go test ./...

Test Coverage

To measure test coverage:

go test -coverprofile="coverage.out" ./...
go tool cover -html="coverage.out" -o="coverage.html"

Run the CLI

go run cmd/cli/main.go

Run the Echo API server

To start the Echo API server:

go run cmd/api-echo/main.go

Run the Gin API server

To start the Gin API server:

go run cmd/api-gin/main.go

Run the Fiber API server

To start the Fiber API server:

go run cmd/api-fiber/main.go

Test API with .rest Requests

You can test either Gin and Echo API endpoints using the REST Client extension for VSCode.

  1. Install the REST Client extension.
  2. Open any .rest file in testdata/.
  3. Click "Send Request" above the desired request to test the API.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Contributors