]> Cypherpunks repositories - gostls13.git/commit
os: add example for OpenFile
authorJaana Burcu Dogan <jbd@google.com>
Mon, 29 Aug 2016 06:11:00 +0000 (23:11 -0700)
committerJaana Burcu Dogan <jbd@google.com>
Mon, 29 Aug 2016 17:44:31 +0000 (17:44 +0000)
commit428d79bd38db30405fe2b5d264d856e52030c338
treece02bb86c8b46e837fd099bcd5d137d4b0b7da3b
parent650c2c173dc8d929d1955045df4fe77c85d4037b
os: add example for OpenFile

New beginners are not familiar with open(2)-style masking of the
flags. Add an example demonstrates the flag or'ing.

Change-Id: Ifa8009c55173ba0dc6642c1d3b3124c766b1ebbb
Reviewed-on: https://go-review.googlesource.com/27996
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/example_test.go [new file with mode: 0644]