code: func BuildCacheWrite(ctx Context, buildCaches []*types.BuildCache) error {
  	render := func(format func(subContext SubContext) error) error {
  		buildCacheSort(buildCaches)
  		for _, bc := range buildCaches {
  			err := format(&buildCacheContext{trunc: ctx.Trunc, v: bc})
  			if err != nil {
  				return err
  			}
  		}
  		return nil
  	}
  	return ctx.Write(newBuildCacheContext(), render)
  }
docs: // BuildCacheWrite renders the context for a list of containers