📦 songquanpeng / go-interview

Golang 面试准备:常考代码实现,阅读资料以及其他资源的汇总

0 stars 0 forks 👁 0 watching ⚖️ MIT License
📥 Clone https://github.com/songquanpeng/go-interview.git
HTTPS git clone https://github.com/songquanpeng/go-interview.git
SSH git clone git@github.com:songquanpeng/go-interview.git
CLI gh repo clone songquanpeng/go-interview
Loading files...
📄 README.md

Golang 面试准备

包含经典代码实现,阅读资料以及其他资源的汇总
License Test Report

基本语法

关键字

  • var / const / type
  • struct
  • interface
  • if / else
  • for / continue / break
  • switch / case / default / fallthrough
  • func / return / defer
  • map
  • range
  • go
  • select / chan
  • goto
  • import / package

预定义标识符

类型

  • int / int8 / int32 / int64
  • uint / uint8 / uint32 / uint64 / uintptr
  • float32 / float64
  • rune / string
  • bool
  • any
  • byte
  • complex64 / complex128
  • error
  • comparable

常量

  • true / false
  • iota

零值

  • nil

内置函数

  • append / cap / len
  • make / new / copy / delete
  • panic / recover
  • close
  • complex / real / imag
  • print / println

其他

  • unsafe.Pointer

数据结构

  • 数组
  • 切片
  • 字典
  • 集合
  • 字符串
  • 结构体

代码实现

标准库

  • sync
  • sync.Map
  • sync.Locker
  • sync.Mutex
  • sync.Cond
  • sync.Once
  • sync.Pool
  • sync.RWMutex
  • sync.WaitGroup

常见错误

  • 循环 & 闭包

并发编程

  • 协程池
  • 动态大小,有参任务函数,可以等待所有任务结束

阅读资料

参考