Skip to content

Contributing

This document describes the full process of setting up a fully working local development environment and submitting your first contribution.

Clone the frizzante repository from GitHub.

git clone https://github.com/razshare/frizzante

Create a new branch and give it a name that describes your changes.

Terminal window
git checkout -b feature/some-feature

Submitted code must follow a few rules.

All package functions, variables and structure fields must always be exported.

package1/types.go
type MyStruct struct {
Field1 string
Field2 int
Field3 bool
Field4 any
}
func MyFunction(){}
const Planet = "Earth"
var Name = "World"

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!"
}

When you’re done with your changes you can submit a pull request in order to implement them into frizzante.