Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cmdPrintPath (0.11 sec)

  1. src/os/exec/lp_windows_test.go

    	"errors"
    	"fmt"
    	"internal/testenv"
    	"io"
    	"io/fs"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"slices"
    	"strings"
    	"testing"
    )
    
    func init() {
    	registerHelperCommand("printpath", cmdPrintPath)
    }
    
    func cmdPrintPath(args ...string) {
    	exe, err := os.Executable()
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "Executable: %v\n", err)
    		os.Exit(1)
    	}
    	fmt.Println(exe)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top