Skip to content

go-packagist/go-kratos-timezone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-kratos-timezone

Go Version GoDoc codecov Go Report Card tests MIT license

Installation

go get github.com/go-packagist/go-kratos-timezone

Usage

package main

import (
	kratos "github.com/go-kratos/kratos/v2"
	timezone "github.com/go-packagist/go-kratos-timezone"
)

func main() {
	app := kratos.New(
		kratos.BeforeStart(
			timezone.Timezone(timezone.WithTimezone("UTC")),
		),
	)

	app.Run()
}

License

The MIT License (MIT). Please see License File for more information.