Consider the Air Live Reload project:   https://github.com/air-verse/air 






From: Michael Oguidan <[email protected]>
To: "golang-nuts"<[email protected]>
Date: Sat, 24 Jan 2026 14:40:52 -0600
Subject: [go-nuts] Re: go/tool: go serve [directory] ???



Why do you want to rely on AI, when you are a good programmer.About what you 
are asking, i think it will be a good idea to build it because never heard of 
something like this in Go



On Saturday, January 24, 2026 at 12:03:26 PM UTC mailto:[email protected]  wrote:

Just wondering if a default command to serve files locally was ever discussed?

I just realized that because of javascript CSP I often need a local server to 
view some index.html file  especially if it imports some other modules.

I could easily write a go file to do so (or even have AI do it if I am not 
afraid of my brain cells shrinking, which I am a little) and install it.

But I thought that the right spot for this could be the go tool.

Did I miss something and it is already existing, or is it insecure perhaps?

For instance, by default, "go serve . " could run a local file server on port 
3000 or something...?



--
 You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
 To unsubscribe from this group and stop receiving emails from it, send an 
email to mailto:[email protected] .
 To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/4c7ea1cb-9c3d-459b-b59a-8e65c8cae2dan%40googlegroups.com?utm_medium=email&utm_source=footer
 .

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/19bf1bf66c5.7792c3531472003.5977528515721168208%40pcsw.us.

Reply via email to