title: Parse embedded Struct form values in GoLang
body: <p>I have a struct that includes an array of another struct, eg</p>
  
  <pre><code>type Struct1 struct {
    Value         string
    Items         []Struct2
  }
  type Struct2 struct {
    Value         string
  }
  </code></pre>
  
  <p>I am using gorilla schema to decode my Form values into Struct 1.
  The values for the embedded struct, Struct 2, are not coming through.</p>
  
  <p>When I look at the logs for the FormValue("Struct2") it returns '[Object object], [Object object]'</p>
  
  <p>Any help would be greatly appreciated</p>
  
  <p><strong>EDIT</strong>
  An example of the structure of the form,</p>
  
  <p>Using AngularJS,</p>
  
  <pre><code>var data = $scope.struct1;
  $http({
        method: 'POST',
          url:url, 
          data : data, 
          headers : {'Content-Type': 'application/x-www-form-urlencoded'},
          transformRequest: function(obj) {
          var str = [];
          for(var p in obj)
          str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
          return str.join("&amp;");
      }
  
      })
      .then(function successCallback(response) { 
          console.log(response);                       
      }, function errorCallback(response) {
  
      });
  </code></pre>