Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 808 Bytes

File metadata and controls

63 lines (46 loc) · 808 Bytes

DotWeb Examples

This directory contains various examples demonstrating dotweb features.

Available Examples

1. Basic Usage

Simple web server setup with routing.

// See main.go

2. JWT Authentication

Demonstrates JWT token-based authentication.

// See jwt/main.go

Run:

cd jwt
go run main.go

3. File Upload

Shows how to handle file uploads.

// See file-upload/main.go

Run:

cd file-upload
go run main.go

4. CORS

Cross-Origin Resource Sharing configuration.

// See cors/main.go

Run:

cd cors
go run main.go

Running Examples

# Run any example
cd example/<name>
go run main.go

More Examples

Visit dotweb-example for more complete examples.