Make tablestruct pkg and move main driver to cmd