# S3

{% code title="main.go" %}

```go
package main

import (
   "fmt"
   helper_s3 "github.com/langwan/langgo/helpers/s3"
   "time"
)

func main() {
   client, err := helper_s3.NewClient("xxxxxx", "xxxxxx", "xxxxxx", "xxxxxx", "xxxxxx", helper_s3.WithTimeout(time.Hour, time.Hour, time.Hour))
   if err != nil {
      panic(err)
   }
   head, err := client.HeadObject("Homework - 1028.mp4")
   if err != nil {
      return
   }
   fmt.Println(head)
}
```

{% endcode %}

{% embed url="<https://github.com/langwan/langgo-examples/tree/main/0.5.x/Components/Upload/Uploading-File-S3>" %}
