package title

import "zgo.at/goatcounter/v2/title"

Package title fetches a HTML page's <title>

Index

Functions

func Get

func Get(url string) (string, error)

Get the text contents of a page's <title> element.

Note this won't run any JavaScript; so if a title is changed in JS based on the URL fragment then the result will be wrong.

Source Files

title.go

Version
v2.2.1
Published
Feb 16, 2022
Platform
linux/amd64
Imports
6 packages
Last checked
9 hours ago

Tools for package owners.