golang.org/x/build@v0.0.0-20240506185731-218518f32b70/perfdata/app/local.go (about)

     1  // Copyright 2016 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 !appengine
     6  
     7  package app
     8  
     9  import (
    10  	"context"
    11  	"log"
    12  	"net/http"
    13  )
    14  
    15  // requestContext returns the Context object for a given request.
    16  func requestContext(r *http.Request) context.Context {
    17  	return r.Context()
    18  }
    19  
    20  func infof(_ context.Context, format string, args ...interface{}) {
    21  	log.Printf(format, args...)
    22  }
    23  
    24  var errorf = infof