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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
golang-design
/
go-questions
Public
Notifications
You must be signed in to change notification settings
Fork
670
Star
6.4k
Code
Issues
0
Pull requests
0
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Home
Jump to bottom
qcrao edited this page
Jun 17, 2019
·
9 revisions
数组和切片
切片作为函数参数
切片的容量是怎样增长的
数组和切片有什么异同
编译和链接
逃逸分析是怎么进行的
interface
Go 语言与鸭子类型的关系
值接收者和指针接收者的区别
iface 和 eface 的区别是什么
接口的动态类型和动态值
编译器自动检测类型是否实现接口
接口的构造过程是怎样的
类型转换和断言的区别
接口转换的原理
如何用 interface 实现多态
Go 接口与 C++ 接口有何异同
反射
什么是反射
什么情况下需要使用反射
Go 语言如何实现反射
Go 语言中反射有哪些应用
如何比较两个对象完全相同
map
map 的底层实现原理是什么
如何实现两种 get 操作
map 的遍历过程是怎样的
map 的赋值过程是怎样的
map 的删除过程是怎样的
map 的扩容过程是怎样的
map 中的 key 为什么是无序的
float 类型可以作为 map 的 key 吗
可以边遍历边删除吗
可以对 map 的元素取地址吗
如何比较两个 map 相等
map 是线程安全的吗
标准库
unsafe
Go 指针和 unsafe.Pointer 有什么区别
如何利用 unsafe 获取 slice & map 的长度
如何利用 unsafe 包修改私有成员
如何实现字符串和 byte 切片的零拷贝转换
context
context 是什么
context 有什么作用
context.Value 的查找过程是怎样的
context 如何被取消
Wiki pages
Pages
1
Loading
Home
数组和切片
编译和链接
interface
反射
map
标准库
unsafe
context
Clone this wiki locally
You can’t perform that action at this time.