Thanks a lot, i seem to have been a bit fixated on there already being more
direct symmetry between print and scan.
anyway, i hacked up something that is working as i wanted;
https://play.golang.org/p/BZ437rSo5DU
(when you think about it, a recursive solution was always going to need a
buffer.
On Fri, Feb 21, 2020 at 4:35 PM 'simon place' via golang-nuts
wrote:
>
> basically i want to save a file name in a file (with some url styling for
> human readability);
>
> https://play.golang.org/p/sWYbyU7nuSo
>
> which works, but not with a space in the name;
>
> https://play.golang.org/p/sswqB
basically i want to save a file name in a file (with some url styling for
human readability);
https://play.golang.org/p/sWYbyU7nuSo
which works, but not with a space in the name;
https://play.golang.org/p/sswqBRL8dZW
it needs to be quoted, so i figure '%q' is for this;
%q a double-quote