http

command
v0.0.0-...-174649f Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Demo steps

Run the following command to build the binaraies.

  • go build -o demo main.go

Run the following command to start the server.

  • ./demo

Run the following command to start the client.

  • while true; do curl http://localhost:8080/version; sleep 0.1; done

Modify the source code to change the const version to the following value.

const version = "v0.0.2"

Run the following command to build the binaraies - new version.

  • go build -o demo main.go

Run the following command to restart the server with new version. Note that the [PID] should be replaced with the old version PID.

  • kill -s HUP [PID]

Watch the output of client windows. You should notice that the client doesn't report any error during the server restart.

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