Skip to content

New Package Name Format Verb

Compare
Choose a tag to compare
@ChrisHines ChrisHines released this 24 Jul 01:36
· 32 commits to master since this release

This release adds the %k formatting verb to output the package name for the function or method of stack.Call. The unadorned verb outputs only the last segment of the package import path, while the %+k variety produces the full import path of the package.

Note that %k was chosen in part because one of this package's forks (https://github.com/getlantern/stack) had chosen it for the same purpose. %p was considered, but the fmt package already uses that for formatting pointer values, and we wanted to avoid potential confusion with that use case.