gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

execabs_go119.go (393B)


      1 // Copyright 2022 The Go Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style
      3 // license that can be found in the LICENSE file.
      4 
      5 //go:build go1.19
      6 // +build go1.19
      7 
      8 package execabs
      9 
     10 import (
     11 	"errors"
     12 	"os/exec"
     13 )
     14 
     15 func isGo119ErrDot(err error) bool {
     16 	return errors.Is(err, exec.ErrDot)
     17 }
     18 
     19 func isGo119ErrFieldSet(cmd *exec.Cmd) bool {
     20 	return cmd.Err != nil
     21 }