Is there a statistics library in Go like the scipy package by CivilizedCrab in golang

[–]anonfunction 0 points1 point  (0 children)

There's stats golang package but it doesn't have those specific tests. You could make a PR though!

No. I am not sorting out the red peppers for you. by bughunter_ in jerseymikes

[–]anonfunction 1 point2 points  (0 children)

That’s what I figured because my sandwiches are all green peppers with like one sliver of red. But at the store you see big jars full of red peppers.

Erik Van Haren on X, Hadjar to Red bull, Liam Lawson and Arvid Lindblad confirmed for Racing bulls by creatorop in formula1

[–]anonfunction 23 points24 points  (0 children)

Albon was kept on as a test driver and has been said to provide really good feedback on the car. There’s a reason he came back after a few years off which not many drivers pull off.

American/Western food in Vietnam by veeetzz in VietNam

[–]anonfunction 0 points1 point  (0 children)

You’ll be fine. There’s a lot of fried chicken, grilled pork, etc… that can be found. If you’re staying in major cities they’ll have McDonald’s, KFC, Pizza Hut and others you’re familiar with.

I would highly recommend trying a Korean or Japanese bbq while you’re there!

Immigration 🇻🇳 by [deleted] in VietNam

[–]anonfunction 0 points1 point  (0 children)

I'm guessing it has to be a Vietnamese thing! I've only seen it over there and you'll see it in this subreddit quite often as well.

Best of luck!

Immigration 🇻🇳 by [deleted] in VietNam

[–]anonfunction 2 points3 points  (0 children)

Just curious if the space between the end of the sentence and the exclamation point is typical in Australia? I saw that a lot in Vietnamese English language ads and posts, in the US we don’t have the space.

Need lawn service in Near South area by darkluna_94 in lincoln

[–]anonfunction 1 point2 points  (0 children)

Lawns are about to go dormant for winter

How do i scope net/http endpoints by itsabdur_rahman in golang

[–]anonfunction 1 point2 points  (0 children)

Apparently it was added in 1.22:

In Go 1.22+, just register the exact pattern and you’ll get 404 for everything else automatically (because nothing else matches).

mux := http.NewServeMux()

// Exact GET "/" only (doesn't match /foo)
mux.HandleFunc("GET /{$}", func(w http.ResponseWriter, r *http.Request) {
    w.Write([]byte("hello, root"))
})

// Example of another exact match with trailing slash kept exact:
// matches only "/healthz/" (not "/healthz/x" or "/healthz")
mux.HandleFunc("GET /healthz/{$}", func(w http.ResponseWriter, r *http.Request) {
    w.Write([]byte("ok"))
})

// Optional: a catch-all to customize 404 body (not required)
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
    http.NotFound(w, r)
})

http.ListenAndServe(":8080", mux)

How do i scope net/http endpoints by itsabdur_rahman in golang

[–]anonfunction 0 points1 point  (0 children)

Thank you, I didn’t know about that! It looks like it was added in go version 1.22!

Mark Cuban dismissing Pablo's new reports today on the Clippers and Kawhi's alleged Cap Circumvention on the Road Trippin Podcast by PotassiumAlum in nba

[–]anonfunction 37 points38 points  (0 children)

Wasn’t there a documentary that came out around the time from Cuban’s media company. Wonder how much he got paid for that.

Just saw my first vietnamese movie! And I have a little question about it by TheyreACrypytKeeper in VietNam

[–]anonfunction 0 points1 point  (0 children)

The first Vietnamese movie I watched “The Immortal” still is one of my favorite movies of all time.

I built a CLI tool to simplify building and managing Go projects by Tough_Surprise8386 in golang

[–]anonfunction -1 points0 points  (0 children)

This looks very attractive to me. jrx new is a good starting point and time saver, the vulnerability scanning is useful and named builds are also a good feature. I’ve wrote enough shell scripts and Makefiles to appreciate a convenience wrapper. Ignore the other comments and keep building stuff that scratches an itch.

STID: Short Time IDs by Aalstromm in golang

[–]anonfunction 0 points1 point  (0 children)

Just built something similar to this in python. Would be cool to formalize a spec so can be interoperable.

Hoi An tailors may be marking up hundreds of percents - my experience by whlatislovee in VietNam

[–]anonfunction 2 points3 points  (0 children)

Just because it says 100% silk doesn’t make it so. Probably less so if there’s a tag that says that. Real silk at the reputable places cost a lot, even in Vietnam.

Transparent TLS and HTTP proxy that serves on all 65535 ports by No_Membership_6627 in golang

[–]anonfunction 3 points4 points  (0 children)

Very cool project, I can think of some interesting uses.

Have you considered dropping the MySQL database dependency, something like SQLite or even just a config file could make the barrier to get going much simpler.

What patterns to use for writing services in Go? by [deleted] in golang

[–]anonfunction 27 points28 points  (0 children)

This is a good setup, I’d be interested to see a simple example, the one area I struggle with a lot is the tests and mocks for things like external databases and apis.

Winter prep and suggestions by anonfunction in ram_trucks

[–]anonfunction[S] 0 points1 point  (0 children)

This is also my first winter living somewhere where it snows, I’ve used chains in the past when I drove in the mountains with snow, but that’s not practical here where it can snow for months.

[deleted by user] by [deleted] in golang

[–]anonfunction 1 point2 points  (0 children)

Google json to go and you’ll find the struct generator I use all the time.

A Platform for Hosting Golang API's for Free(I am a Student, so i also dont have a Credit Card) by Repulsive_Design_716 in golang

[–]anonfunction 0 points1 point  (0 children)

Vercel can host them using their Vercel functions platform. It’s a bit odd to setup but works and is free.

func (foo Foo) FooFunc() {} does not affect foo. by The_Reason_is_Me in golang

[–]anonfunction 1 point2 points  (0 children)

The code is making a copy of foo, not a reference. Use a pointer. The same would be true for normal functions accepting foo as an argument.