mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
26 lines
696 B
Go
26 lines
696 B
Go
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
|
|
|
package serverconfigs
|
|
|
|
type HTTPJavascriptOptimizationConfig struct {
|
|
HTTPBaseOptimizationConfig
|
|
|
|
IsOn bool `yaml:"isOn" json:"isOn"`
|
|
|
|
Precision int `yaml:"precision" json:"precision"`
|
|
Version int `yaml:"version" json:"version"`
|
|
KeepVarNames bool `yaml:"keepVarNames" json:"keepVarNames"`
|
|
}
|
|
|
|
func NewHTTPJavascriptOptimizationConfig() *HTTPJavascriptOptimizationConfig {
|
|
return &HTTPJavascriptOptimizationConfig{}
|
|
}
|
|
|
|
func (this *HTTPJavascriptOptimizationConfig) Init() error {
|
|
err := this.HTTPBaseOptimizationConfig.Init()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|