mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 02:45:11 +00:00
16 lines
274 B
Go
Executable File
16 lines
274 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/time"
|
|
)
|
|
|
|
// Get the current time
|
|
func ReturnsCurrentTimeOptionallyWithLocation() {
|
|
timeService := time.NewTimeService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := timeService.Now(&time.NowRequest{})
|
|
fmt.Println(rsp, err)
|
|
}
|