pdfcov

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "pdfcov",
	Short: "pdfcov相关辅助工具",
	Long:  `一些批处理pdfcov的工具`,
	RunE: func(cmd *cobra.Command, args []string) error {
		flags := cmd.PersistentFlags()
		log.Debug(flags.GetString("config"))
		return run(cmd.Context())
	},
}

Cmd represents the config command

Functions

This section is empty.

Types

type RequestPdf

type RequestPdf struct {
	// contains filtered or unexported fields
}

RequestPdf requestpdf struct

func NewRequestPdf

func NewRequestPdf(body string) *RequestPdf

NewRequestPdf request to pdf function

func (*RequestPdf) GeneratePDF

func (r *RequestPdf) GeneratePDF(pdfPath string) (bool, error)

generate pdf function

func (*RequestPdf) ParseTemplate

func (r *RequestPdf) ParseTemplate(templateFileName string, data interface{}) error

parsing template function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL