func (h *Holiday) NameEn() string {
	if h == nil {
		return ""
	}
	return (*h)["name_en"]
}
NameEn returns english name of the holiday.
package holiday
import (
	"errors"
	"fmt"
	"time"
	"gopkg.in/yaml.v2"
	_ "github.com/holiday-jp/holiday_jp-go/statik"
	"github.com/rakyll/statik/fs"
)
var holidays = Holidays{}
func init() {
	fs, err := fs.New()
	if err != nil {
		panic(err)
	}
	f, err := fs.Open("/.")
	if err != nil {
		panic(err)
	}
	if err := yaml.NewDecoder(f).Decode(holidays); err != nil {
		panic(err)
	}
}
type Holiday map[string]string
func New(t time.Time) (*Holiday, error) {
	holiday, ok := holidays[genDateStr(t)]
	if !ok {
		return nil, errors.New("There is no applicable holiday")
	}
	return &holiday, nil
}
func (h *Holiday) Date() (*time.Time, error) {
	t, err := time.Parse(time.RFC3339, (*h)["date"]+" 00:00:00 +0000 UTC")
	if err != nil {
		return nil, err
	}
	return &t, nil
}
func (h *Holiday) Name() string {
	if h == nil {
		return ""
	}
	return (*h)["name"]
}