Add functions Init and Close to handle all statements, in Go code generated.