You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: blob.go
    path of file: ./repos/gogs/internal/route/api/v1/repo
    
    the code of the file until where you have to start completion: package repo

import (
	"encoding/base64"
	"fmt"

	"github.com/gogs/git-module"

	"gogs.io/gogs/internal/context"
	"gogs.io/gogs/internal/gitutil"
	"gogs.io/gogs/internal/repoutil"
)

func RepoGitBlob(c 
    
func RepoGitBlob(c *context.APIContext) {
	gitRepo, err := git.Open(repoutil.RepositoryPath(c.Params(":username"), c.Params(":reponame")))
	if err != nil {
		c.Error(err, "open repository")
		return
	}

	sha := c.Params(":sha")
	blob, err := gitRepo.CatFileBlob(sha)
	if err != nil {
		c.NotFoundOrError(gitutil.NewError(err), "get blob")
		return
	}

	type repoGitBlob struct {
		Content  string `json:"content"`
		Encoding string `json:"encoding"`
		URL      string `json:"url"`
		SHA      string `json:"sha"`
		Size     int64  `json:"size"`
	}

	content, err := blob.Blob().Bytes()
	if err != nil {
		c.NotFoundOrError(gitutil.NewError(err), "get blob content")
		return
	}

	c.JSONSuccess(&repoGitBlob{
		Content:  base64.StdEncoding.EncodeToString(content),
		Encoding: "base64",
		URL:      fmt.Sprintf("%s/repos/%s/%s/git/blobs/%s", c.BaseURL, c.Params(":username"), c.Params(":reponame"), sha),
		SHA:      sha,
		Size:     blob.Size(),
	})
}