func BackendSQLite() func(*GoSpider) {
	return func(gs *GoSpider) {
		gs.backend = "sqlite"
	}
}
BackendSQLite sets the gospider backend with sqllite
package gospider
import (
	"log"
	"os"
	"strconv"
	"strings"
	"github.com/nange/gospider/web/core"
	"github.com/nange/gospider/common"
	"github.com/nange/gospider/web"
	"github.com/pkg/errors"
)
const (
	Name = "gospider"
	Version = "1.0.0"
)
type GoSpider struct {
	backend string
	mysql   common.MySQLConf
	web     *web.Server
}
func New(opts ...func(*GoSpider)) *GoSpider {
	gs := &GoSpider{}
	gs.init()
	for _, f := range opts {
		f(gs)
	}
	gs.parseSettingsFromEnv()
	return gs
}
func (gs *GoSpider) Run() error {
	gs.print()
	db, err := common.NewGormDB(gs.mysql)
	if err != nil {
		return errors.Wrap(err, "new gorm db failed")
	}
	core.SetGormDB(db)
	return errors.Wrap(gs.web.Run(), "web run failed")
}
func BackendMySQL() func(*GoSpider) {
	return func(gs *GoSpider) {
		gs.backend = "mysql"
	}
}