mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 20:28:17 +08:00
17 lines
273 B
Go
17 lines
273 B
Go
package main
|
|
|
|
import (
|
|
"gitee.com/johng/gf/g/database/gkafka"
|
|
"fmt"
|
|
)
|
|
|
|
func main () {
|
|
config := gkafka.NewConfig()
|
|
config.Servers = "localhost:9092"
|
|
|
|
client := gkafka.NewClient(config)
|
|
defer client.Close()
|
|
|
|
fmt.Println(client.Topics())
|
|
}
|