Description

Set sets the value using the specified selector and returns the object on which Set was called.

Set can only operate directly on map[string]interface{} and []interface

Example

To set the title of the third chapter of the second book, do:

o.Set("books[1].chapters[2].title","Time to Go")

Set is referenced in 1 repository

github.com/stretchr/testify