command
module
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Feb 4, 2021
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
mfmt
group the imports into three parts, likes 'system' 'group' and 'others', and then format code base on go-fmt.
how to use
- go get -u github.com/koketama/mfmt
- cd $GOPATH/src/repo
- mfmt
notice
mfmt base on go(likes /usr/local/go), you should run mfmt in develop enviroment.
setup in git hooks
- mkdir -p ~/.git/hooks
- vi ~/.git/hooks/pre-commit
#!/bin/bash
mfmt
if [ $? -ne 0 ]; then
exit 1
fi
- git config --global init.templatedir '~/.git'
- cd some_git_repo && git init
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.