Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brentp/xopen
/ functions
Functions
28 in github.com/brentp/xopen
⨍
Functions
28
◇
Types & classes
3
↓ 5 callers
Method
Close
Close the associated files.
xopen.go:95
↓ 5 callers
Function
Ropen
Ropen opens a buffered reader.
xopen.go:177
↓ 4 callers
Function
Wopen
Wopen opens a buffered reader. If f == "-", then stdout will be used. If f endswith ".gz", then the output will be gzipped. If f startswith "tmp:" the
xopen.go:220
↓ 3 callers
Function
Exists
Exists checks if a local file exits
xopen.go:63
↓ 3 callers
Function
ExpandUser
ExpandUser expands ~/path and ~otheruser/path appropriately.
xopen.go:42
↓ 2 callers
Function
Buf
Buf returns a buffered reader from an io.Reader. If f == "-", then it will attempt to read from os.Stdin. If the file is gzipped, it will be read as s
xopen.go:140
↓ 2 callers
Function
IsGzip
IsGzip returns true buffered Reader has the gzip magic.
xopen.go:27
↓ 2 callers
Function
IsStdin
IsStdin checks if we are getting data from stdin.
xopen.go:32
↓ 2 callers
Method
Name
Name returns the path to the underlying file.
xopen.go:113
↓ 1 callers
Function
CheckBytes
CheckBytes peeks at a buffered stream and checks if the first read bytes match.
xopen.go:73
↓ 1 callers
Method
Flush
Flush the writer.
xopen.go:128
↓ 1 callers
Function
XReader
XReader returns a reader from a url string or a file.
xopen.go:156
↓ 1 callers
Function
gzFromString
(s string)
xopen_test.go:22
Method
Close
Close the associated files.
xopen.go:118
Function
Test
(t *testing.T)
xopen_test.go:16
Method
TestExists
(c *C)
xopen_test.go:156
Method
TestExpand
(c *C)
xopen_test.go:165
Method
TestIsGzip
(c *C)
xopen_test.go:37
Method
TestIsStdin
(c *C)
xopen_test.go:45
Method
TestOpenBadFile
(c *C)
xopen_test.go:144
Method
TestOpenStdout
(c *C)
xopen_test.go:138
Method
TestReadHttp
(c *C)
xopen_test.go:104
Method
TestReadProcess
(c *C)
xopen_test.go:118
Method
TestRopen
(c *C)
xopen_test.go:50
Method
TestUser
(c *C)
xopen_test.go:161
Method
TestWOpenBadFile
(c *C)
xopen_test.go:150
Method
TestWopen
(c *C)
xopen_test.go:56
Method
TestWopenTmp
(c *C)
xopen_test.go:82