title: Functional testing with Golang
body: <p>I have a webservice written in Golang.</p>
  
  <p>I need to refactor it because it is poorly written. </p>
  
  <p>I have seen Golang works with the format <code>TestMethodName(t *testing.T)</code>. This is great for unit testing, but in my case, methods will change a lot because of the refactoring.</p>
  
  <p>That's why I want to write functional testing, so that I can test each endpoint, and check that output has correct format, without being dependant of functions</p>
  
  <p>How should I do it with Golang ?</p>
  
  <p>Is there any framework that helps me with functional tests ? In another stack, like PHP / Laravel for instance, I can swap PostgreSQL with a SQLite, or In Memory testing, which is very practical for this kind of tests.</p>