[go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-06 Thread rob solomon
I've been trying to do something simple like this, but I'm not interested in following symlinks.  Here I just am interested in summing all subdirectories from my start directory.  But I'm not geting consistent sums, especially if I start from my home directory. I guess I'm not handling

[go-nuts] understanding utf-8 for a newbie

2017-05-07 Thread rob solomon
Thanks to those who answered. I grew up in the EBCDIC vs ASCII era, and I've always expected that the bytes in the file were the same as those that represented a character. I now understand that the bytes may be different. Thanks guys. -- rob solomon -- You received this message because

[go-nuts] understanding utf-8 for a newbie

2017-05-05 Thread rob solomon
quote = 0x201D apostrophe = 0x2019 emdash = 0x2014. Why are the runes returned by utf8.DecodeRuneInString different from what hexdump shows when inspecting the file directly? --rob solomon -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

[go-nuts] go toolchain confusion

2017-04-13 Thread rob solomon
Hi. I'm new to Go. I wrote some code for my own use on Ubuntu 16.04 amd64, using just vim as my editor. Then I got experimental and installed vscode (code_1.11.1-whatever-amd64.deb) and I let it install all the Go stuff it wanted. I'm getting "cannot find package" messages from I guess