moved go code to separate dir