Add .editorconfig file and refactor Go files to follow set format