config.go 1.0 KB

12345678910111213141516171819202122232425
  1. package sample
  2. const (
  3. // sample运行的环境配置。如果您需要运行sample,请先修成您的配置。
  4. endpoint string = "<endpoint>"
  5. accessID string = "<AccessKeyId>"
  6. accessKey string = "<AccessKeySecret>"
  7. bucketName string = "<my-bucket>"
  8. // 运行cname的示例程序sample/cname_sample的示例程序的配置。
  9. // 如果您需要运行sample/cname_sample,请先修成您的配置。
  10. endpoint4Cname string = "<endpoint>"
  11. accessID4Cname string = "<AccessKeyId>"
  12. accessKey4Cname string = "<AccessKeySecret>"
  13. bucketName4Cname string = "<my-cname-bucket>"
  14. // 运行sample时的Object名称
  15. objectKey string = "my-object"
  16. // 运行sample需要的资源,即sample目录目录下的BingWallpaper-2015-11-07.jpg
  17. // 和The Go Programming Language.html,请根据实际情况修改
  18. localFile string = "src/sample/BingWallpaper-2015-11-07.jpg"
  19. htmlLocalFile string = "src/sample/The Go Programming Language.html"
  20. newPicName string = "src/sample/NewBingWallpaper-2015-11-07.jpg"
  21. )