endoe golang implemtation