A sequence generator implemented by golang