@Sean
That's fair.  Makes sense.

@Mikk
Yeah my rationale was that I wouldn't want to trust some random program 
from the internet either. Integrating it to the tooling would be a tiny bit 
more secure.
But it gets out of scope quickly I guess.

On Saturday, January 24, 2026 at 1:37:55 PM UTC+1 Mikk Margus wrote:

> The compiler toolchain does not seem like a good place to bundle 
> something like this.
> You could just find a project that implements this and then `go run` it 
> instead.
>
> e.g
> go run github.com/kevinpollet/[email protected] 
> <http://github.com/kevinpollet/[email protected]>
>
> On 1/24/26 14:03, [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 [email protected] <mailto:golang- 
> > [email protected]>.
> > To view this discussion visit https://groups.google.com/d/msgid/golang- 
> > nuts/3b8063ad-c3c9-4276-9d7f-8e747dcba8bfn%40googlegroups.com <https:// 
> > groups.google.com/d/msgid/golang-nuts/3b8063ad- 
> > c3c9-4276-9d7f-8e747dcba8bfn%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/7f11889a-275d-4e4d-a981-5651cb3539b4n%40googlegroups.com.

Reply via email to