func process(f *dump.Frame, name string) { preprocess(f) haveOutput := false if *flag_jpeg { dumpImage(f, noExt(name)+".jpg") haveOutput = true } if *flag_png { dumpImage(f, noExt(name)+".png") haveOutput = true } if *flag_gnuplot { dumpGnuplot(f, noExt(name)+".gplot") haveOutput = true } if *flag_gnuplotgzip { dumpGnuplotGZip(f, noExt(name)+".gplot.gz") haveOutput = true } if *flag_omf != "" { dumpOmf(noExt(name)+".omf", f, *flag_omf) haveOutput = true } if *flag_vtk != "" { dumpVTK(noExt(name)+".vtk", f, *flag_vtk) haveOutput = true } if !haveOutput || *flag_show { f.Fprintf(os.Stdout, *flag_format) haveOutput = true } }