// NewViewField returns a ViewField function.
// design: the name of the design document.
//
// name: the name of the view.
//
// mapFun: the map function code.
//
// reduceFun: the reduce function code(optional).
//
// language: the name of the programming language used, default is javascript.
//
// wrapper: an optional function for processing the result rows after retrieved.
//
// options: view specific options.
NewViewField returns a ViewField function.
design: the name of the design document.

the name of the view.

the map function code.

the reduce function code(optional).

the name of the programming language used, default is javascript.

an optional function for processing the result rows after retrieved.

view specific options.
// NewViewField returns a ViewField function . // design : the name of the design document . // // name : the name of the view . // // mapFun : the map function code . // // reduceFun : the reduce function code ( optional ) . // // language : the name of the programming language used default is javascript . // // wrapper : an optional function for processing the result rows after retrieved . // // options : view specific options .
func NewViewField(design, name, mapFun, reduceFun, language string, wrapper func(Row) Row, options map[string]interface{}) ViewField {
	f := func() (*ViewDefinition, error) {
		return NewViewDefinition(design, name, mapFun, reduceFun, language, wrapper, options)
	}
	return ViewField(f)
}
func NewViewField ( design , name , mapFun , reduceFun , language string , wrapper func ( Row ) Row , options map [ string ] interface { } ) ViewField { f := func ( ) ( * ViewDefinition , error ) { return NewViewDefinition ( design , name , mapFun , reduceFun , language , wrapper , options ) } return ViewField ( f ) }
NewViewField returns a ViewField function.
NewViewField returns a ViewField function .