func SQLLikeEscapePostgres(param string) string {
	return SQLLikeEscape(param, []rune{'%', '_'}, '\\')
}
SQLLikeEscapePostgres like escape
package pgs
import (
	"github.com/go-pg/pg/v10"
	"github.com/go-pg/pg/v10/orm"
	"reflect"
	"strconv"
	"strings"
)
func CreateSchema(db *pg.DB, ms []interface{}) error {
	for _, model := range ms {
		err := db.Model(model).CreateTable(&orm.CreateTableOptions{Temp: false, IfNotExists: true})
		if err != nil {
			return err
		}
	}
	return nil
}