Spaces:
Paused
Paused
File size: 310 Bytes
83a59ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | //go:build integration
package handlers
import (
"os"
"github.com/carlmjohnson/requests"
_ "github.com/joho/godotenv/autoload" // import USER_API_KEY from .env file
)
func testClient() *requests.Builder {
return requests.URL("http://localhost:8000").
Header("x-api-key", os.Getenv("USER_API_KEY"))
}
|