Logo
Explore Help
Register Sign In
admin/gluetun
1
0
Fork 0
You've already forked gluetun
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
loops
gluetun/internal/updater/html/attribute.go

13 lines
218 B
Go
Raw Permalink Normal View History

feat: SlickVPN Support (#961) - `internal/updater/html` package - Add unit tests for slickvpn updating code - Change shared html package to be more share-able - Split html utilities in multiple files - Fix processing .ovpn files with prefix space Authored by @Rohaq Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
2022-08-15 16:25:06 +01:00
package html
import "golang.org/x/net/html"
func Attribute(node *html.Node, key string) (value string) {
for _, attribute := range node.Attr {
if attribute.Key == key {
return attribute.Val
}
}
return ""
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 185ms Template: 16ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API