func WithLogLevel(level pgx.LogLevel) PostgresConfigOption {
	return func(o *PostgresConfig) {
		o.LogLevel = level
	}
}
WithLogLevel new server port in string
package postgresconfig
import (
	"github.com/tsingson/multiconfig"
	"github.com/imdario/mergo"
	"github.com/jackc/pgx/v4"
	"go.uber.org/zap/zapcore"
	"github.com/tsingson/logger"
)
type PostgresConfig struct {
	User            string            `json:"User"`
	Password        string            `json:"Password"`
	Database        string            `json:"Database"`
	Port            uint16            `json:"Port"`
	Host            string            `json:"Host"`
	Logger          pgx.Logger        `json:"-"`
	LogLevel        pgx.LogLevel      `json:"LogLevel"`
	RuntimeParams   map[string]string `json:"RuntimeParams"`
	PoolConnections string
	Debug           bool `json:"Debug"`
}
var defaultLog = logger.New(logger.WithDebug(),
	logger.WithDays(31),
	logger.WithLevel(zapcore.DebugLevel),
	logger.WithStoreInDay())
var defaultPostgresConfig = &PostgresConfig{
	User:            "postgres",
	Password:        "postgres",
	Database:        "vktest",
	Port:            5432,
	Host:            "127.0.0.1",  
	PoolConnections: "4",          
	LogLevel:        pgx.LogLevelError,
	Logger:          defaultLog.PgxLogger(),
	RuntimeParams: map[string]string{
		"standard_conforming_strings": "on",
	},
}
type PostgresConfigOption func(*PostgresConfig)
func WithHost(host string) PostgresConfigOption {
	return func(o *PostgresConfig) {
		o.Host = host
	}
}
func WithDatabase(dbname string) PostgresConfigOption {
	return func(o *PostgresConfig) {
		o.Database = dbname
	}
}
func WithUserPassword(user, password string) PostgresConfigOption {
	return func(o *PostgresConfig) {
		o.User = user
		o.Password = password
	}
}
func WithLogger(log pgx.Logger) PostgresConfigOption {
	return func(o *PostgresConfig) {
		o.Logger = log
	}
}