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: wrap.go
    path of file: ./repos/goldfish/handlers
    
    the code of the file until where you have to start completion: package handlers

import (
	"net/http"
	"strings"

	"github.com/caiyeon/goldfish/vault"
	"github.com/labstack/echo"
)

func WrapHandler() echo.HandlerFunc {
	return func(c echo.Context) error {
		// fetch auth from header or cookie
		auth := getSession(c)
		if auth == nil {
			return nil
		}
		defer auth.Clear()

		wrapttl := c.FormValue("wrapttl")
		if wrapttl == "" {
			return c.JSON(http.StatusBadRequest, H{
				"error": "wrapttl cannot be 0",
			})
		}

		data := c.FormValue("data")

		// fetch results
		wrappingToken, err
    
func WrapHandler() echo.HandlerFunc {
	return func(c echo.Context) error {
		// fetch auth from header or cookie
		auth := getSession(c)
		if auth == nil {
			return nil
		}
		defer auth.Clear()

		wrapttl := c.FormValue("wrapttl")
		if wrapttl == "" {
			return c.JSON(http.StatusBadRequest, H{
				"error": "wrapttl cannot be 0",
			})
		}

		data := c.FormValue("data")

		// fetch results
		wrappingToken, err := auth.WrapData(wrapttl, data)
		if err != nil {
			return parseError(c, err)
		}

		return c.JSON(http.StatusOK, H{
			"result": wrappingToken,
		})
	}
}