Go Package os: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
=External=
=External=
* https://pkg.go.dev/os
=Internal=
* [[Go_Language_Modularization#os|Standard library]]
=Overview=
=TO DEPLETE=
<font color=darkkhaki>
==External==


* https://golang.org/pkg/os
* https://golang.org/pkg/os
* https://golang.org/pkg/os/signal
* https://golang.org/pkg/os/signal


=Internal=
==Internal==


* [[Go Concepts - Standard Library#Packages|Standard Library]]
* [[Go Concepts - Standard Library#Packages|Standard Library]]
Line 10: Line 20:
* [[Go Signals|Signals in Go]]
* [[Go Signals|Signals in Go]]


=Functions=
==Functions==


==<tt>os.Open()</tt>==
===<tt>os.Open()</tt>===


* https://golang.org/pkg/os/#Open
* https://golang.org/pkg/os/#Open
Line 18: Line 28:
Works with files and directories.
Works with files and directories.


==<tt>os.Create()</tt>==
===<tt>os.Create()</tt>===


* https://golang.org/pkg/os/#Create
* https://golang.org/pkg/os/#Create


=<tt>os.File</tt>=
==<tt>os.File</tt>==


* https://golang.org/pkg/os/#File
* https://golang.org/pkg/os/#File


==<tt>os.File</tt> Methods==
===<tt>os.File</tt> Methods===


* <tt>[https://golang.org/pkg/os/#File.Stat File.Stat()]</tt>
* <tt>[https://golang.org/pkg/os/#File.Stat File.Stat()]</tt>
Line 33: Line 43:
* <tt>[https://golang.org/pkg/os/#File.Readdir File.Readdir()]</tt>
* <tt>[https://golang.org/pkg/os/#File.Readdir File.Readdir()]</tt>


=<tt>FileInfo</tt>=
==<tt>FileInfo</tt>==


* https://golang.org/pkg/os/#FileInfo
* https://golang.org/pkg/os/#FileInfo


==<tt>FileInfo</tt> Methods==
===<tt>FileInfo</tt> Methods===


* <font color=red><tt>Size()</tt></font>
* <font color=red><tt>Size()</tt></font>


=<tt>os.Args</tt>=
==<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 17:31, 25 August 2023