Comment

Comment by zxvkhkxvdvbdxz

> If you want to add two days you can't just call Add(0 /years/, 0 /months/, 2 /days/), you need to use AddDate.

Sorry for nit-picking, but 2 days is a duration of time, and you can add one using Add, like this:

    t.Add(time.Hour * 24 * 2)
I agree about FFI being a weak point in go when you need to interact with other languages, but it can hopefully be mitigated by using tinygo, which is still being developed.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton