command
Version:
v0.0.0-...-ac4efd7
Opens a new window with list of versions in this module.
Published: Jan 16, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
recover
Goroutine能够实现高并发,但是如果某个Goroutine panic了,而且这个Goroutine里面没有捕获recover,那么整个进程就会挂掉。所以,好的习惯是每当go产生一个goroutine,就需要写下recover。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.