lintinit

command module
v0.0.0-...-4404a82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2018 License: MIT Imports: 12 Imported by: 0

README

External resources access from init() function may have negative side-effects like cross components initialization dependency and other initialization order issues.

For example, there is a components tree like this:

- pkg1
- pkg2
  + pkg3

lintinit will report pkg1 usages (global variables or function calls) from pk2 init() function but allow to use everything from pkg3.

Installing

go get -u github.com/astavonin/lintinit

How to run

intinit [directories] - runs on package in current directory or directories recursively.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
test_data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL