Skip to content

Watcher

用于监听数据变化,实现实时更新。

方法

请参考源代码了解详细的方法签名和使用方式。

示例

go
package main

import (
    "fmt"
    "log"
    
    cursor "github.com/vibe-coding-labs/go-cursor-sdk"
)

func main() {
    client, err := cursor.NewCursorClient(nil)
    if err != nil {
        log.Fatal(err)
    }
    defer client.Close()
    
    // 使用 Watcher
    // TODO: 添加具体示例
}

相关文档

Released under the MIT License.