Skip to content

ekokurniadi/indodate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

👋 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

Have Fun :D

About

indodate is a plugin for golang programming language for date convertion on indonesian format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages