Go Package os: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 39: Line 39:
* <font color=red><tt>Size()</tt></font>
* <font color=red><tt>Size()</tt></font>


=Command Line Parsing=
=<tt>os.Args</tt>=


<tt>os.Args</tt> is a string slice that holds the command-line arguments, starting with the program name. For more details on how to use see:
<tt>os.Args</tt> is a string slice that holds the command-line arguments, starting with the program name. For more details on how to use see:

Revision as of 02:15, 4 April 2016

External

Internal

os Package Functions

os.Open()

Works with files and directories.

os.Create()

os.File

os.File Methods

FileInfo

FileInfo Methods

  • Size()

os.Args

os.Args is a string slice that holds the command-line arguments, starting with the program name. For more details on how to use see:

Command Line Parsing