Documentation
Getting Started
Endpoints
Language Guides
Go (Golang) World Time API Implementation
High-performance implementation using net/http.
Go (Golang) Integration Snippet
package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
resp, _ := http.Get("https://currenttime.now/public/api/ip")
var res map[string]interface{}
json.NewDecoder(resp.Body).Decode(&res)
fmt.Printf("Time: %v Offset: %v\n", res["datetime"], res["utc_offset"])
}