func OutputSnippets(w io.Writer, l []*samplr.Snippet) {
	mapList := make([]map[string]string, len(l))
	for i, p := range l {
		mapList[i] = snippetToMap(p)
	}
	fields := []string{
		nameName,
		languageName,
		versionsName,
		isDeletedName,
	}
	output.PrintList(w, fields, mapList)
}
OutputSnippets writes a representation of the given snippets to the io.Writer
package snippets
import (
	"io"
	"strconv"
	"github.com/GoogleCloudPlatform/devrel-services/samplr"
	"github.com/GoogleCloudPlatform/devrel-services/samplr/samplrctl/output"
)
const (
	nameName      = "Name"
	languageName  = "Language"
	versionsName  = "Versions"
	isDeletedName = "Is Deleted"
)
func snippetToMap(s *samplr.Snippet) map[string]string {
	return map[string]string{
		nameName:      s.Name,
		languageName:  s.Language,
		versionsName:  strconv.FormatInt(int64(len(s.Versions)), 10),
		isDeletedName: strconv.FormatBool(len(s.Primary.Content) == 0),
	}
}
func OutputSnippet(w io.Writer, s *samplr.Snippet) {
	output.PrintAllMap(w, snippetToMap(s))
}