1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:24:44 -07:00
go/src/os
Emmanuel Odeke 33e63ebc20 os: add more examples
Updates #16360.

Adds examples for:
+ Chmod
+ Chtimes
+ FileMode

Change-Id: I1b61ee0392fa3774593a7f36aaf0fa1e484c778b
Reviewed-on: https://go-review.googlesource.com/28963
Run-TryBot: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-09-14 04:35:55 +00:00
..
exec os/exec: fix nit found by vet 2016-08-16 00:44:45 +00:00
signal all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
user os/user: don't create C function mygetgrouplist 2016-05-10 22:32:38 +00:00
dir_plan9.go
dir_unix.go os: fix typo in comment (Readir -> Readdir) 2016-08-30 01:24:57 +00:00
dir_windows.go os: consolidate files 2016-08-16 00:15:36 +00:00
dir.go os: consolidate files 2016-08-16 00:15:36 +00:00
env_test.go
env_unix_test.go os: make ExpandEnv recognize '-' as a special shell parameter 2016-08-21 18:32:57 +00:00
env.go os: make ExpandEnv recognize '-' as a special shell parameter 2016-08-21 18:32:57 +00:00
error_plan9.go os: delete code duplications in error files 2016-09-10 17:04:21 +00:00
error_test.go os: make IsExists also recognize syscall.ENOTEMPTY 2016-04-03 06:22:07 +00:00
error_unix_test.go os: make IsExists also recognize syscall.ENOTEMPTY 2016-04-03 06:22:07 +00:00
error_unix.go os: delete code duplications in error files 2016-09-10 17:04:21 +00:00
error_windows_test.go os: make IsExists also recognize syscall.ENOTEMPTY 2016-04-03 06:22:07 +00:00
error_windows.go os: delete code duplications in error files 2016-09-10 17:04:21 +00:00
error.go os: delete code duplications in error files 2016-09-10 17:04:21 +00:00
example_test.go os: add more examples 2016-09-14 04:35:55 +00:00
exec_plan9.go
exec_posix.go all: single space after period. 2016-03-02 00:13:47 +00:00
exec_unix.go os: on GNU/Linux use waitid to avoid wait/kill race 2016-06-10 18:10:14 +00:00
exec_windows.go os: use runtime.Keepalive for *Process values 2016-08-24 16:57:09 +00:00
exec.go os: consolidate files 2016-08-16 00:15:36 +00:00
export_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
file_plan9.go os: deduplicate File definition 2016-09-05 21:21:05 +00:00
file_posix.go
file_unix.go os: deduplicate File definition 2016-09-05 21:21:05 +00:00
file_windows.go os: deduplicate File definition 2016-09-05 21:21:05 +00:00
file.go os: document that the runtime can write to standard error 2016-06-09 13:47:13 +00:00
getwd_darwin.go
getwd.go all: single space after period. 2016-03-02 00:13:47 +00:00
os_test.go os: fix build error on plan9 2016-08-26 09:09:04 +00:00
os_unix_test.go os: don't let File.Readdir return an empty slice and nil error 2016-08-29 23:59:42 +00:00
os_windows_test.go os: fix build error on plan9 2016-08-26 09:09:04 +00:00
path_plan9.go
path_test.go os: use testenv.MustHaveSymlink to simplify symlink tests 2016-08-23 14:46:46 +00:00
path_unix.go os: consolidate files 2016-08-16 00:15:36 +00:00
path_windows.go os: consolidate files 2016-08-16 00:15:36 +00:00
path.go all: single space after period. 2016-03-02 00:13:47 +00:00
pipe_bsd.go
pipe_linux.go
pipe_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
proc.go
stat_darwin.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_dragonfly.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_freebsd.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_linux.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_nacl.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_netbsd.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_openbsd.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_plan9.go os: consolidate files 2016-08-16 00:15:36 +00:00
stat_solaris.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_unix.go os: consolidate files 2016-08-16 00:15:36 +00:00
stat_windows.go os: prevent infinite symlink loop of Stat on Windows 2016-08-26 05:58:01 +00:00
sticky_bsd.go
sticky_notbsd.go
str.go
sys_bsd.go
sys_darwin.go
sys_freebsd.go
sys_linux.go
sys_nacl.go
sys_plan9.go
sys_solaris.go
sys_unix.go
sys_windows.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sys.go os: consolidate files 2016-08-16 00:15:36 +00:00
types_plan9.go os: consolidate files 2016-08-16 00:15:36 +00:00
types_unix.go os: consolidate files 2016-08-16 00:15:36 +00:00
types_windows.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
types.go os: deduplicate File definition 2016-09-05 21:21:05 +00:00
wait_unimp.go os: use wait6 to avoid wait/kill race on freebsd 2016-06-13 22:13:56 +00:00
wait_wait6.go os: use runtime.Keepalive for *Process values 2016-08-24 16:57:09 +00:00
wait_waitid.go os: use runtime.Keepalive for *Process values 2016-08-24 16:57:09 +00:00