Create new type and remove un-used code
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 11s
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 11s
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package tml
|
||||
|
||||
import "sync"
|
||||
|
||||
var disableFormatting bool
|
||||
var formattingLock sync.RWMutex
|
||||
|
||||
func DisableFormatting() {
|
||||
formattingLock.Lock()
|
||||
defer formattingLock.Unlock()
|
||||
disableFormatting = true
|
||||
}
|
||||
|
||||
func EnableFormatting() {
|
||||
formattingLock.Lock()
|
||||
defer formattingLock.Unlock()
|
||||
disableFormatting = false
|
||||
}
|
||||
Reference in New Issue
Block a user