Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WithBuildXWriter (0.23 sec)

  1. src/cmd/go/internal/cfg/cfg.go

    			GoPathError = "cannot set GOROOT as GOPATH"
    		}
    		return ""
    	}
    	GoPathError = fmt.Sprintf("%s is not set", env)
    	return ""
    }
    
    // WithBuildXWriter returns a Context in which BuildX output is written
    // to given io.Writer.
    func WithBuildXWriter(ctx context.Context, xLog io.Writer) context.Context {
    	return context.WithValue(ctx, buildXContextKey{}, xLog)
    }
    
    type buildXContextKey struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top