【文件属性】:
文件名称:go-ogp:获取开放图谱协议元标记
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-16 13:50:46
Go
Go-ogp
获取元标记。
查看。
安装
$ go get github.com/frozzare/go-ogp
例子
请注意,您不必在键中写og:
list := ogp . Fetch ( "http://ogp.me" )
title := list [ "title" ]
image_width := list [ "image:width" ]
// Or you can print out all Open Graph meta tags
ogp . Print ( "http://ogp.me" )
执照
麻省理工学院:copyright:
【文件预览】:
go-ogp-master
----.travis.yml(136B)
----LICENSE-MIT(1KB)
----ogp_test.go(280B)
----ogp.go(897B)
----README.md(620B)