Implemenetation of RFC1847 in go