golang.org/x/build@v0.0.0-20240506185731-218518f32b70/perfdata/app/appengine.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 "net/http" 12 13 "google.golang.org/appengine" 14 "google.golang.org/appengine/log" 15 ) 16 17 // requestContext returns the Context object for a given request. 18 func requestContext(r *http.Request) context.Context { 19 return appengine.NewContext(r) 20 } 21 22 var infof = log.Infof 23 var errorf = log.Errorf