Updated Go API and examples.