-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
408 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,6 @@ | |
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
*.zip | ||
|
||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# contributing | ||
|
||
Contribute to this library by submitting PR (pull requests). | ||
|
||
Make sure your contribution passes the following validations: | ||
|
||
1. New code must be formatted according to `fmt` standards: | ||
|
||
`go fmt ./...` | ||
|
||
2. New code must pass `lint` validations: | ||
|
||
`golint ./...` | ||
|
||
3. And new code must pass Go Vetting practices: | ||
|
||
`go vet ./...` | ||
|
||
I would like to keep this library simple, the proposed change must be a common use case. | ||
|
||
## maintainer | ||
|
||
Code is organized in a flat module space, the public API of the core module is intentionally small, with public | ||
structures that expose only one public method always with the signature `(*struct) Apply() error`. | ||
|
||
### example | ||
|
||
``` | ||
type EnforceLaunchConfig struct { | ||
// ... | ||
} | ||
EnforceLaunchConfig encapsulates the attributes of a LaunchConfig | ||
enforcement | ||
func (e *EnforceLaunchConfig) Apply() error | ||
Apply the LaunchConfig enforcement | ||
``` | ||
|
||
Packages `cmd/*` are entry points, `main` packages which make use of the public structures in the core module. Main | ||
packages are purposely simple and only make use of one core structure, their job is just create a new structure run the | ||
`Apply` method and handle the returned `error`. | ||
|
||
## releases | ||
|
||
Create a GitHub release, run `./make.sh` and attach the deliverables (zip files) to the release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2019 Autodesk Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.