Contributing
This document describes the full process of setting up a fully working local development environment and submitting your first contribution.
Clone Repository
Section titled “Clone Repository”Clone the frizzante
repository from GitHub.
git clone https://github.com/razshare/frizzante
Create Branch
Section titled “Create Branch”Create a new branch and give it a name that describes your changes.
git checkout -b feature/some-feature
Coding Standards
Section titled “Coding Standards”Submitted code must follow a few rules.
Export Everything
Section titled “Export Everything”All package functions, variables and structure fields must always be exported.
type MyStruct struct { Field1 string Field2 int Field3 bool Field4 any}func MyFunction(){}const Planet = "Earth"var Name = "World"
Data & Logic
Section titled “Data & Logic”Data and logic must be separated, don’t define receiver functions unless you’re forced to by some third party package.
This type of code should be avoided
type MyStruct struct { field1 string}
func (str *MyStruct) MyFunction(){ str.field1 = "Hello!"}
and be instead converted into
type MyStruct struct { Field1 string}
func MyFunction(str *MyStruct){ str.Field1 = "Hello!"}
Pull Requests
Section titled “Pull Requests”When you’re done with your changes you can submit a pull request in order to implement them into frizzante
.