server

command
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package main demonstrates an HTTP server that compiles LESS files on-the-fly.

This example creates a web server that serves LESS files as CSS, compiling them dynamically on each request. Useful for development environments.

Usage:

go run main.go
# Then visit http://localhost:8080/styles.less

The server will:

  • Serve .less files as compiled CSS
  • Serve static files from the current directory
  • Optionally cache compiled CSS for better performance

Jump to

Keyboard shortcuts

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