05_go_embedded

command
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 12 Imported by: 0

README

05_go_embedded

Demonstrates embedding hclapi as a library inside an existing Go application, mounting onto http.ServeMux, and registering thread-safe native Go step handlers.

Running

cd examples/05_go_embedded
go run main.go

Testing

curl -i http://localhost:8080/api/v1/weather/tokyo

# or

curl -i http://localhost:8080/api/v1/weather/london

# or

curl -i http://localhost:8080/api/v1/weather/new-york

# or

curl -i http://localhost:8080/api/v1/weather/bogota

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