Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
chungwei
go
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
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.