Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d-tux/go-fstab
/ functions
Functions
19 in github.com/d-tux/go-fstab
⨍
Functions
19
◇
Types & classes
3
↓ 2 callers
Function
ParseFile
ParseFile parses the given file
fstab.go:48
↓ 2 callers
Function
ParseLine
ParseLine parses a single line (of an fstab). It will most frequently return a Mount; however, If a parsing error occurs, `err` will be non-nil and pr
mount.go:175
↓ 2 callers
Method
format
format serializes the object according to the given format
mount.go:80
↓ 1 callers
Method
Equals
Equals compares 2 Mount objects
mount.go:134
↓ 1 callers
Method
MntOpsString
MntOpsString returns the serialized MntOps value
mount.go:56
↓ 1 callers
Function
Parse
(source io.Reader)
fstab.go:58
↓ 1 callers
Method
SpecType
SpecType returns the device identifier type
mount.go:139
↓ 1 callers
Method
String
String serializes the object into fstab format
mount.go:75
↓ 1 callers
Function
parseOptions
parseOptions parses the options field into an array of strings
mount.go:42
Method
IsNFS
()
mount.go:129
Method
IsSwap
()
mount.go:125
Method
PaddedString
PaddedString serializes a list of mounts to the fstab format with padding.
fstab.go:26
Method
PaddedString
PaddedString serializes the objet into fstab format with configurable column width. Each positional argument specifies the width for the column in ord
mount.go:87
Function
ParseProc
ParseProc parses procfs information
fstab.go:43
Function
ParseSystem
ParseSystem parses your system fstab ("/etc/fstab")
fstab.go:38
Method
SpecValue
SpecType returns the device identifier value; that is if Spec is "UUID=vogons-ate-my-sandwich", it will return "vogons-ate-my-sandwich"
mount.go:162
Method
String
String serializes a list of mounts to the fstab format
fstab.go:14
Function
TestMountString
(t *testing.T)
mount_test.go:75
Function
TestParseLine
(t *testing.T)
mount_test.go:57