add doc.go for generate