func putObject(c *s3.S3) { key := "aws/config.go" contenttype := "application/ocet-stream" out, err := c.PutObject( &s3.PutObjectInput{ Bucket: &bucket, Key: &key, Body: strings.NewReader("content"), ContentType: &contenttype, }, ) if err != nil { panic(err) } fmt.Println(out) }