Skip to content

cirebon-dev/go_holiday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this library use data APIHariLibur_V2.

installation

go get github.com/cirebon-dev/go_holiday

example usage:

package main

import (
    "fmt"
    "github.com/cirebon-dev/go_holiday"
)

func main() {
	result, err := go_holiday.Holiday("2023-06-01")
	if err != nil {
		fmt.Println("Error:", err)
		return
	}

	if result == "" {
		fmt.Println("Tidak libur!")
	} else {
		fmt.Println(result)
	}
}

About

library go for Indonesia holidays checker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages