]> Cypherpunks repositories - gostls13.git/commit
os: add ModeType constant to mask file type bits
authorGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 1 Dec 2011 19:35:43 +0000 (17:35 -0200)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 1 Dec 2011 19:35:43 +0000 (17:35 -0200)
commitd2b77bb194b8377c1b1ba5826960f1e63f13a51a
treeadb23eee8437f6e6c4ef85e07f5ef260c5fa3eba
parent744fb52102642382d09968d8bc0fe4090af20360
os: add ModeType constant to mask file type bits

This covers the lack of IsRegular comfortably:

    if stat.Mode()&os.ModeType == 0 { ... }

R=golang-dev, r, rsc, r, gustavo
CC=golang-dev
https://golang.org/cl/5440075
src/pkg/os/types.go