ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Go 持续时间计算

    Feb 22, 20236 min read
    // You can edit this code!
    // Click here and start typing.
    package main
    
    import "time"
    
    func main() {
    	startTime := time.Now()
    	time.Sleep(1000)
    	duration := time.Since(startTime)
    	print(duration)
    
    }
    
    

    相关文章

    Understanding SSH Port Forwarding A Practical Guide

    SSH port forwarding, or SSH tunneling, creates secure encrypted channels between local and remote systems, enabling secure access to services, with practical examples covering local, remote, and dynamic forwarding, common use cases, best practices, troubleshooting, and security considerations.

    减少 ChatGPT 官方网页需要频繁刷新的简单办法

    该脚本通过创建一个隐藏的 iframe 并定期更新其 src 属性来实现 ChatGPT 官方网页内容的实时更新,从而减少页面刷新的需求。

    GO JSSDK 前后端服务的实现

    该代码实现了一个使用Go语言编写的微信JS-SDK前后端服务,包括获取和验证微信配置、处理跨域请求以及前端调用微信分享功能。

    yarn add 选项

    建议使用本地依赖而非全局依赖,CLI工具位于./node_modules/.bin,yarn add命令用于在不同属性中添加依赖并可指定版本精确度。

    Spring Cloud Nacos Config 自动刷新配置

    Spring Cloud Nacos Config实现自动刷新配置,通过`@RefreshScope`注解和`ConfigurableApplicationContext`实现配置变更时的动态更新。