/strip_comments

Go exercise - removing comments from source code

Primary LanguageGo

Golang exercise

Function that receives a string containing a Java source code and removes all the single line and multi line comments

makefile

  • Run the function with the hardcoded example on the main function make run
  • Run tests make test

TODO

  • Make it remove the empty lines that had only comments on it without messing with code indentation.