Skip to content

Commit

Permalink
fix(insert): change body type to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrul21 committed Apr 19, 2021
1 parent 6fda7c2 commit 568cf53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stein.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *Stein) Read(sheetName string, filter interface{}, v interface{}) (statu
}

// Insert to Stein
func (s *Stein) Insert(sheetName string, body []interface{}) (status int, res InsertReponse, err error) {
func (s *Stein) Insert(sheetName string, body interface{}) (status int, res InsertReponse, err error) {
reqByte, err := json.Marshal(body)
if err != nil {
return
Expand Down

0 comments on commit 568cf53

Please sign in to comment.