chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)

This commit is contained in:
runny committed 2026-11-13 17:54:56 +08:00
commit 9097ee699d
5769 files changed
+1446466

No files matched your search

@@ -0,0 +1,16 @@
//go:build !unix
package skilltree
// Lock is process-local elsewhere: only macOS ships a host sandbox today.
func (t *Tree) Lock(name string) (func(), error) {
if err := validName(name); err != nil {
return nil, err
}
return func() {}, nil
}
func (t *Tree) tryLock(name string) (func(), bool, error) {
unlock, err := t.Lock(name)
return unlock, err == nil, err
}