| Age | Commit message (Collapse) | Author |
|
With help of spdxconv tool [1], we able to bulk update all files license
and copyright format to comply with SPDX formats.
[1] https://kilabit.info/project/spdxconv/
|
|
Using global variable inside one package is a mistake.
If, for example, package X set debug.Value to 1, another packages that
does need to be debugged will print unnecessary log messages.
|
|
The realignment reduce the struct size from 32 to 24 bytes.
|
|
|
|
|
|
|
|
|
|
The valid syntax to suppress linter warnings is "//nolint:<name>" with
no space between comment and "nolint" and between ":". Also, we move the
placement of nolint directive to the top of statements for multiple
nolint in the same scope.
While at it, fix and supress some linter warnings.
|
|
Most of the warnings caused by update to linter which cause global
variables declared with grouping "( ... )" and that has been suppressed,
are become false-positive again.
|
|
WriteHeapProfile write memory profile into "/tmp/{prefix}.pid.heap.pprof".
If keepAlive is true, the file will be keep opened until error happened,
or caller send keepAlive=false, or when program end.
|
|
This type, MemHeap, is simplified value of runtime.MemStats.
The MemHeap represent the growth of heap memory in bytes and in number
of allocated objects.
|
|
|
|
|
|
The debug package provide global Value that is initialized from
environment variable "DEBUG".
User only need to include the package, and all initialization will be
handled by init().
|