Hi,
documentation of filepath.WalkFunc state:

The path argument contains the argument to Walk as a prefix; that is, if 
> Walk is called with "dir", which is a directory containing the file "a", 
> the walk function will be called with argument "dir/a".
>

but  if the root parameter of Walk is ".", walk function is called with 
"a", not "./a".

example:
https://play.golang.org/p/PvRDSKo3KGz

Is this intentional or incorrect documentation ?

Regards,
Djadala


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to