Documentation ¶
Overview ¶
Package devtoolkit gathers several useful dependencies in different places in the code and avoids making global variables. This is a dependency injection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevToolkit ¶
type DevToolkit struct { // Logger represents the logging system. Logger *log.Logger // Config represents all configuration. Config *config.Config // SentryClient allows to send errors to Sentry. SentryClient *sentry.Client // UserDirs contains the paths of the folders following the XDG standards. UserDirs *userdirs.UserDirs // BuildInfo holds all information about the current build. BuildInfo *buildinfo.BuildInfo }
DevToolkit store the various dependencies that will be used during injection.
func NewDevToolkit ¶
func NewDevToolkit() (toolkit *DevToolkit, err error)
NewDevToolkit instantiates a new DevToolkit for the application. This function should only be called once.
Click to show internal directories.
Click to hide internal directories.