command
Version:
v0.5.37
Opens a new window with list of versions in this module.
Published: May 9, 2025
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GOTRACEBACKの値をプログラムから設定するサンプル
GOTRACEBACKは、Goのプログラムがパニックを起こした際の出力の詳細度を制御する環境変数。
プログラムからも設定することが可能で ```runtime/debug.SetTraceback()``` で設定できる。
debug.SetTraceback("all")
指定出来る値として
- none
- single (デフォルト)
- all
- system
- crach
- wer
がある。
REFERENCES ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.