Create convert.go

a golang version of convert m2n