Documentation ¶
Index ¶
- func ArchiveAsFile(conv ...interface{}) ([]byte, error)
- func ArchiveAsURL(conv ...interface{}) (string, error)
- func BarChartAsFile(charts h.Chart) ([]byte, error)
- func BarChartAsURL(charts h.Chart) (string, error)
- func BarcodeAsFile(content string) ([]byte, error)
- func BarcodeAsURL(content string) (string, error)
- func CompressImageAsFile(conv interface{}, quality int) ([]byte, error)
- func CompressImageAsURL(conv interface{}, quality int) (string, error)
- func Country(countrycode string) (h.Country, error)
- func CountryList() ([]h.Country, error)
- func CropImageAsFile(conv interface{}, width int, height int) ([]byte, error)
- func CropImageAsURL(conv interface{}, width int, height int) (string, error)
- func CsvToExcelAsFile(urlorFile interface{}) ([]byte, error)
- func CsvToExcelAsUrl(urlorFile interface{}) (string, error)
- func CurrencyConv(currency h.CurrencyConverter) (float64, error)
- func CurrencyList() ([]h.Currency, error)
- func EmailValidation(email string, checkType validation.CheckType) (bool, error)
- func FuzzySearch(source string, target string, unicodeNormalize bool) ([]string, error)
- func HtmlContentToPdfFile(content string) ([]byte, error)
- func HtmlContentToPdfURL(content string) (string, error)
- func HtmlToPdfAsFile(urlorFile interface{}, landscape bool) ([]byte, error)
- func HtmlToPdfAsUrl(urlorFile interface{}, landscape bool) (string, error)
- func IcalGeneratorAsFile(calendar h.CalenderEvent) ([]byte, error)
- func IcalGeneratorAsURL(calendar h.CalenderEvent) (string, error)
- func ImageMetadata(urlorFile interface{}) (map[string]interface{}, error)
- func ImageToPdfAsFile(urlorFile interface{}, landscape bool) ([]byte, error)
- func ImageToPdfAsUrl(urlorFile interface{}, landscape bool) (string, error)
- func InitApyHub(auth interface{}) error
- func MarkdownToHtmlAsFile(urlorFile interface{}) ([]byte, error)
- func MarkdownToHtmlAsUrl(urlorFile interface{}) (string, error)
- func PieChartAsFile(charts h.Chart) ([]byte, error)
- func PieChartAsURL(charts h.Chart) (string, error)
- func PostCodeValidation(postcode string, checkType validation.CheckType) (bool, error)
- func PresentationToPdfAsFile(urlorFile interface{}, landscape bool) ([]byte, error)
- func PresentationToPdfAsUrl(urlorFile interface{}, landscape bool) (string, error)
- func QrcodeAsFile(content string) ([]byte, error)
- func QrcodeAsURL(content string) (string, error)
- func ResizeImageAsFile(conv interface{}, width int, height int) ([]byte, error)
- func ResizeImageAsURL(conv interface{}, width int, height int) (string, error)
- func ScreenshotWebpageAsFile(url string, quality int, delay int) ([]byte, error)
- func ScreenshotWebpageAsURL(url string, quality int, delay int) (string, error)
- func SecureArchiveAsURL(password string, conv ...interface{}) (string, error)
- func SecureArchiveFile(password string, conv ...interface{}) ([]byte, error)
- func SecureUnArchiveAsURL(password string, conv interface{}) ([]string, error)
- func SpreadsheetToPdfAsFile(urlorFile interface{}, landscape bool) ([]byte, error)
- func SpreadsheetToPdfAsUrl(urlorFile interface{}, landscape bool) (string, error)
- func StackedBarChartAsFile(charts h.StackedBarChart) ([]byte, error)
- func StackedBarChartAsURL(charts h.StackedBarChart) (string, error)
- func TextFromPdf(urlorFile interface{}) (string, error)
- func TextFromWebpage(url string) (string, error)
- func TextFromWord(urlorFile interface{}) (string, error)
- func ThumnailsImageAsFile(conv interface{}, width int, height int) ([]byte, error)
- func ThumnailsImageAsURL(conv interface{}, width int, height int) (string, error)
- func Timezones() ([]h.Timezone, error)
- func UnArchiveAsURL(conv interface{}) ([]string, error)
- func VatValidation(vat string) (bool, error)
- func WatermarkImageAsFile(conv h.Watermark, width int, height int) ([]byte, error)
- func WatermarkImageAsURL(conv h.Watermark, width int, height int) (string, error)
- func WebpageToPdfFile(url string, margin float64) ([]byte, error)
- func WebpageToPdfURL(url string, margin float64) (string, error)
- func WordToPdfAsFile(urlorFile interface{}, landscape bool) ([]byte, error)
- func WordToPdfAsUrl(urlorFile interface{}, landscape bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveAsFile ¶
Archiver and secure archiver
func ArchiveAsURL ¶
func BarChartAsFile ¶
Generate Charts, bar code,qr code and pdf
func BarcodeAsFile ¶
func BarcodeAsURL ¶
func CompressImageAsFile ¶
image processing
func CompressImageAsURL ¶
func CountryList ¶
func CropImageAsFile ¶
func CsvToExcelAsFile ¶
##Functions
### csvToExcel
Converts a CSV file or URL to an Excel file.
**`Example 1 : convert csv file to Excel file`**
```go
import ( apyhub "github.com/apyhub/apyhub.go" ) File,err :=os.Open("any csv file") if err!=nil { log.Fatal(err) } // Input is a file byt,err :=apyhub.CsvToExcelAsFile(File)
```
**`Example 2 : convert csv file url to Excel file`**
```go
fileUrl :="csv file url" // Input is a url byt,err :=apyhub.CsvToExcelAsFile(fileUrl)
```
#### Defined in
[convert/csvToExcel.go:63](https://github.com/apyhub/apyhub.go/blob/main/convert/csvToExcel.go#L63)
func CsvToExcelAsUrl ¶
**`Example 3 : convert csv file to AWS presigned url`**
```go
// Input is a file File,err :=os.Open("any csv file") if err!=nil { log.Fatal(err) } url,err :=apyhub.CsvToExcelAsUrl(File)
```
**`Example 4 : convert csv file url to AWS presigned url`**
```go
fileUrl :="csv file url" // Input is a url url,err :=apyhub.CsvToExcelAsUrl(fileUrl)
```
#### Defined in
[convert/csvToExcel.go:38](https://github.com/apyhub/apyhub.go/blob/main/convert/csvToExcel.go#L38)
**`Link`**
https://apyhub.com/utility/converter-csv-excel
#### Parameters
<table> <tr><th>Name</th><th>Type</th><th>Description</th></tr> <tr><td>input</td><td> <code>"string"</code> | <code>Buffer</code></td><td>The html file or URL.</td></tr> <tr><td>output</td><td><code>[]byte</code> | <code>"string"</code> </td><td>The format for the response.</td></tr> </table>
#### Returns
The data for the output file as slice of byte or Url as a string.
func CurrencyConv ¶
func CurrencyConv(currency h.CurrencyConverter) (float64, error)
func CurrencyList ¶
func EmailValidation ¶
func EmailValidation(email string, checkType validation.CheckType) (bool, error)
Email DNS and Acadamic
func FuzzySearch ¶
func HtmlContentToPdfFile ¶
func HtmlContentToPdfURL ¶
func HtmlToPdfAsFile ¶
func HtmlToPdfAsUrl ¶
func IcalGeneratorAsFile ¶
func IcalGeneratorAsFile(calendar h.CalenderEvent) ([]byte, error)
func IcalGeneratorAsURL ¶
func IcalGeneratorAsURL(calendar h.CalenderEvent) (string, error)
func ImageMetadata ¶
func ImageToPdfAsFile ¶
### imageToPdf
Converts a image file or URL to an pdf file.
**`Example 1 : convert image to pdf file`**
```go
import ( apyhub "github.com/apyhub/apyhub.go" ) // Input is a file File,err :=os.Open("any image") if err!=nil { log.Fatal(err) } byt,err :=apyhub.ImageToPdfAsFile(File)
```
**`Example 2 : convert image url to pdf file`**
```go
// Input is a url fileUrl :="image url" byt,err :=apyhub.ImageToPdfAsFile(fileUrl)
```
#### Defined in
[convert/imageToPdf.go:12](https://github.com/apyhub/apyhub.go/blob/main/convert/imageToPdf.go#L12)
func ImageToPdfAsUrl ¶
func MarkdownToHtmlAsFile ¶
func MarkdownToHtmlAsUrl ¶
func PostCodeValidation ¶
func PostCodeValidation(postcode string, checkType validation.CheckType) (bool, error)
IN and UK postcode
func PresentationToPdfAsFile ¶
func PresentationToPdfAsUrl ¶
func QrcodeAsFile ¶
func QrcodeAsURL ¶
func ResizeImageAsFile ¶
func ResizeImageAsURL ¶
func ScreenshotWebpageAsFile ¶
func ScreenshotWebpageAsURL ¶
func SecureArchiveAsURL ¶
func SecureArchiveFile ¶
func SecureUnArchiveAsURL ¶
func SpreadsheetToPdfAsFile ¶
func SpreadsheetToPdfAsUrl ¶
func StackedBarChartAsFile ¶
func StackedBarChartAsFile(charts h.StackedBarChart) ([]byte, error)
func StackedBarChartAsURL ¶
func StackedBarChartAsURL(charts h.StackedBarChart) (string, error)
func TextFromPdf ¶
func TextFromWord ¶
func ThumnailsImageAsFile ¶
func ThumnailsImageAsURL ¶
func WatermarkImageAsFile ¶
func WatermarkImageAsURL ¶
func WordToPdfAsFile ¶
func WordToPdfAsUrl ¶
Types ¶
This section is empty.