Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't forget: in 45 min, without bugs


oh and do it in Go* ... Good F'ing Luck .

Go makes normal string operations tricky due to rune being an alias for int32, ranging a string gives []byte indexes ...

https://go.dev/play/p/33jCwNG6Eu6


It's a bit sucky but you can use the standard library function "utf8.DecodeRuneInString(a)".




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: