WebSettings
embeds glib.GObject
which in turn implements the Set
method (see godoc).
So g_object_set
should translate in your case to settings.GObject.Set
or, as the method set
of GObject
is exported to WebSettings
, you can simply do
settings.Set("enable-scripts", false)