👋
Welcome
INDODATE
indodate is a package for golang programming language for date conversion on indonesian format
How to install
go get github.com/ekokurniadi/indodate
Then import the indodate package
import "github.com/ekokurniadi/indodate"
Example Project
package main
import (
"fmt"
"time"
"github.com/ekokurniadi/indodate"
)
func main() {
fmt.Println(indodate.LetterDate(time.Now())) // output : 23 Oktober 2021
fmt.Println(indodate.DateWithSlash(time.Now())) // output : 23/10/2021
fmt.Println(indodate.DateWithMin(time.Now())) // output : 23-10-2021
}
Run example project and you will see the output
go run main.go
23 Oktober 2021
23/10/2021
23-10-2021