server

command module
v0.0.0-...-7245a53 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Server

Web server that demonstrates REST API, configuration, logging, metrics, middleware, and panic handling. See main.go or the examples\client folder for how it works.

Build

go build -o server

Configuration

The configuration can be specified using a config.yml file, environment variables, or command line arguments.

---
http:
   address: http://localhost
   port: 2000
   content: content
export HTTP_ADDRESS=http://localhost
export HTTP_PORT=2000
export HTTP_CONTENT=content

Run Server

./server http_address=http://localhost http_port=1111 http_content=content

Routes

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
client command
internal

Jump to

Keyboard shortcuts

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