and stream example

This commit is contained in:
wanglei.w
2020-11-11 14:06:04 +08:00
parent e5fdc50a8f
commit b260b92d8a
5 changed files with 208 additions and 2 deletions

View File

@@ -15,8 +15,8 @@ import (
// The stderr output can be retrieved by accessing the
// ``stderr`` property of the exception.
func Probe(fileName string, kwargs KwArgs) (string, error) {
return ProbeWithTimeout(fileName, 0, kwargs)
func Probe(fileName string, kwargs ...KwArgs) (string, error) {
return ProbeWithTimeout(fileName, 0, MergeKwArgs(kwargs))
}
func ProbeWithTimeout(fileName string, timeOut time.Duration, kwargs KwArgs) (string, error) {