added custom template support, added more ad data, use concurrency

This commit is contained in:
2023-12-16 20:32:10 +01:00
parent df6baadc85
commit e904ed6687
9 changed files with 121 additions and 53 deletions

View File

@@ -17,14 +17,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package main
import (
"github.com/hashicorp/hcl/v2/hclsimple"
"os"
"github.com/hashicorp/hcl/v2/hclsimple"
)
type Config struct {
Verbose bool `hcl:"verbose"`
User int `hcl:"user"`
Outdir string `hcl:"outdir"`
Verbose bool `hcl:"verbose"`
User int `hcl:"user"`
Outdir string `hcl:"outdir"`
Template string `hcl:"template"`
}
func ParseConfigfile(file string) (*Config, error) {