Refact file structure.
Format go coding style.