Is there a way to determine the characters of a comment based on the file type in Go?

前端 未结 0 1447
甜味超标
甜味超标 2021-01-07 09:22

I am trying to determine comments in a file passed into my little go program. For example, if the filepath ./test.go was passed and had this body:

package mai         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题