Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
xibz
/
go
Public
forked from
golang/go
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
HttpFetch
Jump to bottom
Edit
New page
Konstantin Kulikov edited this page
Aug 8, 2015
·
2 revisions
Fetching URLs with HTTP
See the
example in net/http
.
Wiki pages
Pages
106
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Articles
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Blogs
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Books
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
BoundingResourceUse
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
cgo
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ChromeOS
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
CodeReview
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
CodeReviewComments
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
CodeTools
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Comments
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
CommonMistakes
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
CompilerOptimizations
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Conferences
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Courses
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
DashboardBuilders
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
DesignDocuments
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Errors
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
FreeBSD
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
FromXToGo
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GccgoCrossCompilation
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GcToolchainTricks
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GithubCodeLayout
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Go 1.6 release party
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Go Release Cycle
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
go test
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Go1point1Gotchas
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
go_faq.html
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoArm
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoForCPPProgrammers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoGenerateTools
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoGetProxyConfig
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoGetTools
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GOPATH
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Gopher
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoStrings
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoTalks
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoUserGroups
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoUsers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
GoVsGenerics
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
HandlingIssues
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Hashing
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
heapdump13
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
heapdump14
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
heapdump15
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
HostedContinuousIntegration
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
HowToAsk
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
HttpFetch
Fetching URLs with HTTP
Loading
HttpStaticFiles
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
IDEsAndTextEditorPlugins
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
InstallFromSource
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
InstallTroubleshooting
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
InterfaceSlice
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Iota
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Learn
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
LearnConcurrency
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
LearnErrorHandling
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
LearnServerProgramming
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
LearnTesting
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
LockOSThread
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
MethodSets
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Mobile
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
MultipleGoRoots
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
MutexOrChannel
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
NativeClient
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
NetBSD
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
NoMeToo
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
NonEnglish
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
OlderVersions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
OpenBSD
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
PackageManagementTools
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
PackagePublishing
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
PanicAndRecover
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
PerfDashboard
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Plan9
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Podcasts
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
PortingPolicy
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Projects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ProviderIntegration
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Questions
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
RaceDetector
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Range
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
RateLimiting
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Rationales
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
ResearchPapers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Screencasts
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SendingMail
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SignalHandling
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SimultaneousAssignment
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SliceTricks
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SQLDrivers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SQLInterface
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Style
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SubRepositories
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
SuccessStories
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Switch
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
TableDrivenTests
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Timeouts
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Training
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Ubuntu
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Well known struct tags
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
whygo
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WindowsBuild
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WindowsCrossCompiling
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WindowsDLLs
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
WindowsSupport
Uh oh!
There was an error while loading.
Please reload this page
.
Show 91 more pages…
Contents
Home
Getting started with Go
Working with Go
Learning more about Go
The Go Community
Using the Go toolchain
Additional Go Programming Wikis
Online Services that work with Go
Troubleshooting Go Programs in Production
Contributing to the Go Project
Platform Specific Information
Release Specific Information
Clone this wiki locally
You can’t perform that action at this time.