I use Go (golang) 1.14 on Ubuntu 18.04
the files arrange like this: parent/ , and it is the working directory.
when i use
os.MkdirAll("dir/subdir", 0777)
it does make the files looks like parent/dir/subdir
but the file permission of dir is
drwxrwxr-x
and not drwxrwxrwx
as i expected.
with 0666 permissions, i get permission denied.