github.com/gogf/gkafka@v1.0.1-0.20190702070843-033a14468069/main/topics.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "github.com/gogf/gkafka" 6 ) 7 8 func main() { 9 config := gkafka.NewConfig() 10 config.Servers = "localhost:9092" 11 12 client := gkafka.NewClient(config) 13 defer client.Close() 14 15 fmt.Println(client.Topics()) 16 }