<commit_before># galaxy-fds-sdk-golang
Golang SDK for Xiaomi File Data Storage.
# install
```
go get github.com/pyinx/galaxy-fds-sdk-golang
```
#example
```
package main

import (
	"fmt"
	"github.com/pyinx/galaxy-fds-sdk-golang"
)

func main() {
	c := galaxy_fds_sdk_golang.NewFDSClient("YOUR_APP_KEY", "YOUR_APP_SECRET")
	fmt.Println(c.Create_Bucket("test-testaaaaaaaaaa"))
	fmt.Println(c.Delete_Bucket("test-testaaaaaaaaaa"))
	c.List_Bucket()
	fmt.Println(c.Is_Bucket_Exists("test-testaaaaaa"))
	fmt.Println(c.Is_Object_Exists("test-testaaaaaa", "a.jpg"))
	content := c.Get_Object("test-testaaaaaa", "2.txt", 0, 100)
	fmt.Println(content)
	c.List_Object("test-testaaaaaa")
	c.Post_Object("test-testaaaaaa", "abcdefgssss")
	c.Put_Object("test-testaaaaaa", "1.txt", "abcdefg")
	fmt.Println(c.Delete_Object("test-testaaaaaa", "2.txt"))<commit_msg>add cachecontrol<commit_after># galaxy-fds-sdk-golang
Golang SDK for Xiaomi File Data Storage.
# install
```
go get github.com/pyinx/galaxy-fds-sdk-golang
```
#example
```
package main

import (
	"fmt"
	"github.com/pyinx/galaxy-fds-sdk-golang"
)

func main() {
	c := galaxy_fds_sdk_golang.NewFDSClient("YOUR_APP_KEY", "YOUR_APP_SECRET")
	fmt.Println(c.Create_Bucket("test-testaaaaaaaaaa"))
	fmt.Println(c.Delete_Bucket("test-testaaaaaaaaaa"))
	c.List_Bucket()
	fmt.Println(c.Is_Bucket_Exists("test-testaaaaaa"))
	fmt.Println(c.Is_Object_Exists("test-testaaaaaa", "a.jpg"))
	content := c.Get_Object("test-testaaaaaa", "2.txt", 0, 100)
	fmt.Println(content)
	c.List_Object("test-testaaaaaa")
	c.Post_Object("test-testaaaaaa", "abcdefgssss", 300) // cache-control:300
	c.Put_Object("test-testaaaaaa", "1.txt", "abcdefg", 300)
	fmt.Println(c.Delete_Object("test-testaaaaaa", "2.txt"))
{'fraction_non_alphanumeric': 0.17844727694090382, 'fraction_numerical': 0.013325608342989572, 'mean_word_length': 6.286919831223629, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2571649', 'n_tokens_mistral': 751, 'n_tokens_neox': 702, 'n_words': 91}