Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xujihui1985 committed Sep 24, 2018
1 parent 045fd03 commit 05802b9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Binary file added packaging/application/github.com/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### rule

#### cmd is where binary live, we should put all related binary in one library
#### internal is the pkg which can not be seen by other project, they are reusable across multiple binaries
4 changes: 4 additions & 0 deletions packaging/library/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### rule

#### all package in same level can not depend on each other
#### try not to import thirdpart library
14 changes: 14 additions & 0 deletions packaging/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Mechanics

In Go, all packages are "first class", and the only hierarchy is what you define in the source tree
for your project

Two packages can't cross import each other. imports are a one way steet

### Design

#### to be purposeful, packages must provide, not contain
#### to be usable, packages must be designed with the user as their focus
#### packages must be intuitive and simple to use
#### Packages must protect the users application from cascading changes
#### packages must reduce taking on opinions when it's reasonable and practical

0 comments on commit 05802b9

Please sign in to comment.