13 lines
197 B
Go
13 lines
197 B
Go
package server
|
|
|
|
import (
|
|
`fmt`
|
|
)
|
|
|
|
func (p *Page) RenderIP(indent uint) (s string) {
|
|
|
|
s = fmt.Sprintf("<a href=\"https://ipinfo.io/%s\">%s</a>", p.Info.IP.String(), p.Info.IP.String())
|
|
|
|
return
|
|
}
|