Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BgColor is used to draw background behind the text BgColor byte = 1 // FgColor is used to print text, draw icons etc. FgColor byte = 7 )
Functions ¶
func Export ¶ added in v0.22.0
Export makes the v visible in terminal. v can be a variable or a function. It will be visible under the specified name.
If you want to be able to update the value of v in the terminal, please pass a pointer to v. For example:
v := 1 devtools.Export("v", &v)
Then in the terminal write:
v = 2
func ExportType ¶ added in v0.22.0
func ExportType[T any]()
ExportType makes the type T visible in terminal. It will be visible under the name "package.Name". For example type "github.com/a/b/c/pkg.SomeType" will be visible as "pkg.SomeType". This function also automatically imports the package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.