Skip to content

Commit ab1d3ed

Browse files
committed
update documents
1 parent eaaadfa commit ab1d3ed

File tree

4 files changed

+27
-17
lines changed

4 files changed

+27
-17
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ This project is inspired by the java version [ArchUnit](https://www.archunit.org
1212
- Package dependency checking
1313
- Package, folder and file naming checking
1414
- Project layer checking
15+
16+
## Todo
17+
- All const should be defined in a file in a package
18+
- All file with extension should be in the folder
19+
- platform specific code naming
20+
21+
## Method
22+
- limit the accessibility of methods of struct
23+
- limit the accessibility of methods of package

internal/method.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package internal

method_rule.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package archunit
2+
3+
type Method struct {
4+
selector []string
5+
}
6+
7+
func MethodsComplyWithType() *Method {
8+
return nil
9+
}
10+
11+
func (m *Method) ShouldBeInPackage(pkgs string) error {
12+
return nil
13+
}
14+
15+
func (m *Method) ShouldBeInFolder(folder string) error {
16+
return nil
17+
}

methods.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)