1 Star 1 Fork 0

Blazz / go-mysql-plus

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
main.go 436 Bytes
Copy Edit Raw Blame History
Blazz authored 2023-06-16 11:32 . change module name for ext
package main
import (
"flag"
"os"
"gitee.com/Blazz/go-mysql-plus/replication"
)
var name = flag.String("name", "", "binlog file name")
var offset = flag.Int64("offset", 0, "parse start offset")
func main() {
flag.Parse()
p := replication.NewBinlogParser()
f := func(e *replication.BinlogEvent) error {
e.Dump(os.Stdout)
return nil
}
err := p.ParseFile(*name, *offset, f)
if err != nil {
println(err.Error())
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/Blazz/go-mysql-plus.git
git@gitee.com:Blazz/go-mysql-plus.git
Blazz
go-mysql-plus
go-mysql-plus
v1.7.3

Search