This commit is contained in:
Imbus 2024-02-20 15:55:15 +01:00
parent dec43d2dba
commit 3b51c69948

View file

@ -17,7 +17,7 @@ type ButtonState struct {
// This is what a handler with a receiver looks like
// Keep in mind that concurrent state access is not (usually) safe
// And will in pracice be guarded by a mutex
// And will in practice be guarded by a mutex
func (b *ButtonState) pressHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == "POST" {
b.PressCount++