Skip to content

aandryashin/reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reloader

Build Status Coverage Release

Library for automatic reloading configuration files based on file system events.

Using

package main

import (
	"log"
	"time"

	"github.com/aandryashin/reloader"
)

func loadConfig() {
	//...
}

func main() {
	err := reloader.Watch("config", loadConfig, 5*time.Second)
	if err != nil {
		log.Fatal(err)
	}
	//...
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages