prolayout

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 6 Imported by: 0

README

ProLayout

Pro(ject) layout is a static analysis tool that allow you to lint the project structure of your go project.

Why

Since Go does not enforce any real project structure, we wanted to have a static analysis tool, to help us to ensure projects are structured in a similar fashion.

Example configuration file

module: "github.com/wimspaargaren/prolayout"
root:
  - name: "cmd"
    dirs:
      - name: ".*"
        files:
          - "main.go"
  - name: "internal"
  - name: "pkg"
  - name: "tests"
    files:
      - name: ".*_test.go"

Documentation

Overview

Package main bootstrap the analyzer to validate the project structure.

Directories

Path Synopsis
internal
analyzer
Package analyzer contains the logic to validate the project structure.
Package analyzer contains the logic to validate the project structure.
errors
Package errors contains the error types that can be returned by the analyzer.
Package errors contains the error types that can be returned by the analyzer.
model
Package model contains the project structure definitions.
Package model contains the project structure definitions.

Jump to

Keyboard shortcuts

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