Re: [go-nuts] simplistic web based chat solution

2023-07-22 Thread Eli Lindsey
I’m taking a stab at answering, but I didn’t quite follow your intent and may have misunderstood your question. Please let me know if that’s the case. :) > I'm having a hard time putting it into my code. Specifically, how to handle > incoming new chats message and push to all web base clients.

[go-nuts] simplistic web based chat solution

2023-07-22 Thread Tong Sun
I know web based chatting service can be as complicated as possible, but I want to build a web based chat server that is as simple as possible. And the chapter 8 of the book "The Go Programming Language" at https://github.com/adonovan/gopl.io/tree/master/ch8/chat seems to be a perfect starting

[go-nuts] Re: Using log/slog with log.Logger format?

2023-07-22 Thread cpu...@gmail.com
Seems it's not possible to create a logger using the log.Logger format in a straight-forward way? On Thursday, July 20, 2023 at 3:48:49 PM UTC+2 cpu...@gmail.com wrote: > The log/slog logger uses the log.Logger format by default. Implementation > is internal. > > In a gradual switch to slog