getter

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package getter is using to get resources from url. * Get metadata for website; * Get image blob to avoid CORS;

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLMeta

type HTMLMeta struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Image       string `json:"image"`
}

func GetHTMLMeta

func GetHTMLMeta(urlStr string) (*HTMLMeta, error)

type Image

type Image struct {
	Blob      []byte
	Mediatype string
}

func GetImage

func GetImage(urlStr string) (*Image, error)

Jump to

Keyboard shortcuts

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