Changed visibility of internal functions in view_writer.go