func hasSuffix(suffix, s string) bool {
	return strings.HasSuffix(s, suffix)
}
hasSuffix returns whether a given string is a suffix of another string
package template
import (
	"bytes"
	"crypto/sha1"
	"encoding/json"
	"errors"
	"fmt"
	"io"
	"io/ioutil"
	"log"
	"reflect"
	"strings"
)
func hasPrefix(prefix, s string) bool {
	return strings.HasPrefix(s, prefix)
}