- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for stdin (0.05 sec)
-
src/cmd/addr2line/main.go
log.Fatal(err) } defer f.Close() tab, err := f.PCLineTable() if err != nil { log.Fatalf("reading %s: %v", flag.Arg(0), err) } stdin := bufio.NewScanner(os.Stdin) stdout := bufio.NewWriter(os.Stdout) for stdin.Scan() { p := stdin.Text() if strings.Contains(p, ":") { // Reverse translate file:line to pc. // This was an extension in the old C version of 'go tool addr2line'
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Jun 21 19:58:04 UTC 2024 - 2.4K bytes - Viewed (0) -
docs/debugging/inspect/main.go
"github.com/klauspost/filepathx" ) var ( keyHex = flag.String("key", "", "decryption key") privKeyPath = flag.String("private-key", "support_private.pem", "private key") stdin = flag.Bool("stdin", false, "expect 'mc support inspect' json output from stdin") export = flag.Bool("export", false, "export xl.meta") djson = flag.Bool("djson", false, "expect djson format for xl.meta")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 31 14:49:23 UTC 2024 - 5.2K bytes - Viewed (0) -
cmd/service.go
// process when successful. func restartProcess() error { if runtime.GOOS == globalWindowsOSName { cmd := exec.Command(os.Args[0], os.Args[1:]...) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr cmd.Stdin = os.Stdin cmd.Env = os.Environ() err := cmd.Run() if err == nil { os.Exit(0) } return err } // Use the original binary location. This works with symlinks such that if
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Feb 28 07:02:14 UTC 2024 - 3.8K bytes - Viewed (0) -
src/cmd/addr2line/addr2line_test.go
} return syms } func runAddr2Line(t *testing.T, dbgExePath, addr string) (funcname, path, lineno string) { cmd := testenv.Command(t, testenv.Executable(t), dbgExePath) cmd.Stdin = strings.NewReader(addr) out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("go tool addr2line %v: %v\n%s", os.Args[0], err, string(out)) } f := strings.Split(string(out), "\n") if len(f) < 3 && f[2] == "" {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 06 13:23:48 UTC 2024 - 3.2K bytes - Viewed (0) -
src/bufio/example_test.go
// Buffer contents: Hello, world! // This is a ReadFrom example. } // The simplest use of a Scanner, to read standard input as a set of lines. func ExampleScanner_lines() { scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { fmt.Println(scanner.Text()) // Println will add back the final '\n' } if err := scanner.Err(); err != nil { fmt.Fprintln(os.Stderr, "reading standard input:", err) } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 5.5K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus.go
"istio.io/istio/istioctl/pkg/writer/pilot" pilotxds "istio.io/istio/pilot/pkg/xds" "istio.io/istio/pkg/log" ) var configDumpFile string func readConfigFile(filename string) ([]byte, error) { file := os.Stdin if filename != "-" { var err error file, err = os.Open(filename) if err != nil { return nil, err } } defer func() { if err := file.Close(); err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 6.2K bytes - Viewed (0) -
.gitignore
.*.swp core *.cgo*.go *.cgo*.c _cgo_* _obj _test _testmain.go /VERSION.cache /bin/ /build.out /doc/articles/wiki/*.bin /goinstall.log /last-change /misc/cgo/life/run.out /misc/cgo/stdio/run.out /misc/cgo/testso/main /pkg/ /src/*.*/ /src/cmd/cgo/zdefaultcc.go /src/cmd/dist/dist /src/cmd/go/internal/cfg/zdefaultcc.go /src/cmd/internal/objabi/zbootstrap.go /src/go/build/zcgo.go
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Jul 23 19:05:35 UTC 2024 - 958 bytes - Viewed (0) -
tensorflow/c/c_test.c
limitations under the License. ==============================================================================*/ #include <limits.h> #include <memory.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #ifdef _WIN32 #include <process.h> #endif #include "tensorflow/c/c_api.h" #include "tensorflow/c/c_api_experimental.h"
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Apr 24 20:50:35 UTC 2024 - 2.8K bytes - Viewed (0)