01-basic

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 1 Imported by: 0

README

Basic Usage Example

This example demonstrates the most basic usage of Fox framework.

Features

  • Simple GET endpoint
  • Path parameters
  • Automatic JSON response rendering

Running

go run main.go

Testing

# Test ping endpoint
curl http://localhost:8080/ping

# Test parameterized endpoint
curl http://localhost:8080/hello/world

# Test POST endpoint
curl -X POST http://localhost:8080/echo

Expected Output

# /ping
pong

# /hello/world
Hello, world!

# /echo
{"message":"Echo service is working"}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL