• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
sea的博客
博客园 首页 新随笔 联系 订阅 订阅 管理

2021年1月26日

GO语言常用时间工具类 timeUtil.go
摘要: package util import "time" /**获取时间戳(纳秒)Testner 20210123*/func GetTime_UnixNano() string{ currentTime := time.Now() // fmt.Println("时间戳(纳秒):", now.Unix 阅读全文
posted @ 2021-01-26 11:43 sea的博客 阅读(964) 评论(0) 推荐(0)
 
GO语言HTTP请求案例--httpUtil.go
摘要: package util import ( "bytes" "fmt" "io/ioutil" "log" "net/http") /** 发送的POST请求 需要设置header Testner 20210123 */func Post_Json(url string, bodyJson stri 阅读全文
posted @ 2021-01-26 11:41 sea的博客 阅读(1002) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3