func (f *File) Basename() string {
	return path.Base(f.Name)
}
Basename of f.
package suite
import (
	"fmt"
	"io/ioutil"
	"log"
	"path"
	"path/filepath"
	"strings"
	"github.com/vdobler/ht/cookiejar"
	"github.com/vdobler/ht/errorlist"
	"github.com/vdobler/ht/ht"
	"github.com/vdobler/ht/internal/hjson"
	"github.com/vdobler/ht/mock"
	"github.com/vdobler/ht/populate"
	"github.com/vdobler/ht/scope"
)
func pp(msg string, v interface{}) {
	data, err := hjson.Marshal(v)
	fmt.Println(msg, string(data), err)
}
type File struct {
	Data string
	Name string
}
func LoadFile(filename string) (*File, error) {
	filename = filepath.ToSlash(filename)
	filename = path.Clean(filename)
	data, err := ioutil.ReadFile(filename)
	if err != nil {
		return nil, err
	}
	var soup interface{}
	err = hjson.Unmarshal(data, &soup)
	if err != nil {
		return nil, fmt.Errorf("file %s not valid hjson: %s", filename, err)
	}
	return &File{
		Data: string(data),
		Name: filepath.ToSlash(filename),
	}, nil
}
func (f *File) Dirname() string {
	return path.Dir(f.Name)
}