I’m trying to create my own ls command using golnag. I’m using filepath.walk(path) to access files, it shows all the files and folders correctly and in order when using ls. when trying to shows the hidden files it shows them but the order different than ls-a.
for example:
my code shows -> .get a then b
but ls -a -> a then b then .get
how the ls-a sort them ?
i try sort them alphabetically but not shows the same order