github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/renderers/deb/options.go (about)

     1  package deb
     2  
     3  import (
     4  	_ "embed"
     5  	"path/filepath"
     6  
     7  	"github.com/pojntfx/hydrapp/hydrapp/pkg/renderers"
     8  )
     9  
    10  //go:embed options
    11  var optionsTemplate string
    12  
    13  type optionsData struct {
    14  	GoMain string
    15  }
    16  
    17  func NewOptionsRenderer(
    18  	goMain string,
    19  ) renderers.Renderer {
    20  	return renderers.NewRenderer(filepath.Join("debian", "source", "options"), optionsTemplate, optionsData{goMain})
    21  }