MCPcopy Create free account

hub / github.com/brentp/xopen / functions

Functions28 in github.com/brentp/xopen

↓ 5 callersMethodClose
Close the associated files.
xopen.go:95
↓ 5 callersFunctionRopen
Ropen opens a buffered reader.
xopen.go:177
↓ 4 callersFunctionWopen
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 callersFunctionExists
Exists checks if a local file exits
xopen.go:63
↓ 3 callersFunctionExpandUser
ExpandUser expands ~/path and ~otheruser/path appropriately.
xopen.go:42
↓ 2 callersFunctionBuf
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 callersFunctionIsGzip
IsGzip returns true buffered Reader has the gzip magic.
xopen.go:27
↓ 2 callersFunctionIsStdin
IsStdin checks if we are getting data from stdin.
xopen.go:32
↓ 2 callersMethodName
Name returns the path to the underlying file.
xopen.go:113
↓ 1 callersFunctionCheckBytes
CheckBytes peeks at a buffered stream and checks if the first read bytes match.
xopen.go:73
↓ 1 callersMethodFlush
Flush the writer.
xopen.go:128
↓ 1 callersFunctionXReader
XReader returns a reader from a url string or a file.
xopen.go:156
↓ 1 callersFunctiongzFromString
(s string)
xopen_test.go:22
MethodClose
Close the associated files.
xopen.go:118
FunctionTest
(t *testing.T)
xopen_test.go:16
MethodTestExists
(c *C)
xopen_test.go:156
MethodTestExpand
(c *C)
xopen_test.go:165
MethodTestIsGzip
(c *C)
xopen_test.go:37
MethodTestIsStdin
(c *C)
xopen_test.go:45
MethodTestOpenBadFile
(c *C)
xopen_test.go:144
MethodTestOpenStdout
(c *C)
xopen_test.go:138
MethodTestReadHttp
(c *C)
xopen_test.go:104
MethodTestReadProcess
(c *C)
xopen_test.go:118
MethodTestRopen
(c *C)
xopen_test.go:50
MethodTestUser
(c *C)
xopen_test.go:161
MethodTestWOpenBadFile
(c *C)
xopen_test.go:150
MethodTestWopen
(c *C)
xopen_test.go:56
MethodTestWopenTmp
(c *C)
xopen_test.go:82