Go implementation of painttyServer protocol 1