June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package filedirs import ( "errors" "io" "os" ) // Operate manipulates files and directories func Operate() error { // this 0777 is similar to what you'd see with chown // on a command line this will create a director // /tmp/example, you may also use an absolute path // instead of a relative one if err := os.Mkdir("example_dir", os.FileMode(0755)); ...