"github.com/volcengine/volc-sdk-golang/service/tls"
client := tls.NewClient(os.Getenv("VOLCENGINE_ENDPOINT"), os.Getenv("VOLCENGINE_ACCESS_KEY_ID"),
os.Getenv("VOLCENGINE_ACCESS_KEY_SECRET"), os.Getenv("VOLCENGINE_TOKEN"), os.Getenv("VOLCENGINE_REGION"))
createProjectResp, err := client.CreateProject(&tls.CreateProjectRequest{
ProjectName: "project-name",
Description: "project-description",
Region: "your-service-region",
fmt.Println(err.Error())
projectID := createProjectResp.ProjectID
maxSplitShard := int32(50)
createTopicResp, err := client.CreateTopic(&tls.CreateTopicRequest{
TopicName: "topic-name",
Description: "topic-description",
MaxSplitShard: &maxSplitShard,
EnableTracking: &enableTracking,
fmt.Println(err.Error())
topicID := createTopicResp.TopicID
_, err = client.CreateIndex(&tls.CreateIndexRequest{
FullText: &tls.FullTextInfo{
KeyValue: &[]tls.KeyValueInfo{
fmt.Println(err.Error())