Categorygithub.com/claudesky/hello-go
modulepackage
0.0.0-20240828144639-f2686b82ba6e
Repository: https://github.com/claudesky/hello-go.git
Documentation: pkg.go.dev

# README

Chat Box

A simple chat box

Requirements

  • go
  • browser

Backend

  • Clone the repository

    git clone [email protected]:claudesky/hello-go.git

  • Build the backend

    cd hello-go

    go build .

  • Run the backend

    ./hello-go

Frontend

  • Open the index html file

    google-chrome-stable ./frontend/index.html

  • Open the index file in another browser/tab

    chromium ./frontend/index.html

# Packages

No description provided by the author

# Structs

Client is a middleman between the websocket connection and the hub.
Hub maintains the set of active clients and broadcasts messages to the clients.
No description provided by the author