initial commit before refactor switch
This commit is contained in:
12
server/funcs_page.go
Normal file
12
server/funcs_page.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user