Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 242 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 242 Bytes

syncdo

useage

package main

import (
	"fmt"

	"github.com/di3upham/syncdo"
)

func main() {
	unlock := syncdo.KLock("f1")
	fmt.Println("hello world")
	unlock()
}

func fx() {
	defer syncdo.KLock("f1")()
	// function body
}