Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created September 3, 2022 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madflojo/f1032b568a906caf20fbc7def0fa390a to your computer and use it in GitHub Desktop.
Save madflojo/f1032b568a906caf20fbc7def0fa390a to your computer and use it in GitHub Desktop.
Threadsafe Packages - HTTP Handler
http.HandleFunc("/count", func(w http.ResponseWriter, r *http.Request) {
counter = counter + 1
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment