profile: added example using the flags package

A strawman to iterate from.
yup, that was a mistake, originally i had three, one for each profile type,
this isn't necessary any more

On Mon, Nov 10, 2014 at 10:28 AM, Gabriel Aszalos <notifications@github.com>
wrote:

> In example_test.go:
>
> > @@ -37,3 +38,21 @@ func ExampleNoShutdownHook() {
> >  	// disable the automatic shutdown hook.
> >  	defer profile.Start(profile.NoShutdownHook).Stop()
> >  }
> > +
> > +func ExampleStart_WithFlags() {
> > +	// use the flags package to selectively enable profiling.
> > +	var (
>
> Not to be picky, I've noticed some occurrences like this in the stdlib
> code as well and haven't really understood why, maybe they were slips, but
> why the parenthesis if it's just one value? If we would remove them it
> would look perfect to me. If you're busy just merge it and I can do it for
> you
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pkg/profile/pull/15/files#r20062731>.
>