ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Go程序正常结束和异常结束的表示方法

    Jan 30, 20231 min read

    正常结束:使用 os.Exit(0) 表示程序正常结束,其中0表示程序的退出代码为0,通常0代表程序正常退出。

    异常结束:使用 os.Exit(非0) 表示程序异常结束,其中非0的整数表示程序的退出代码,通常非0的退出代码表示程序异常退出。

    相关文章

    React 调用 setState 之后发生了什么?

    调用 setState 后,React 合并新旧状态,通过调和过程构建新元素树,计算差异并最小化重渲染界面。

    HTTPS是如何保证加密可靠

    HTTP和HTTPS是常用的网络协议,其中HTTPS通过SSL/TLS加密提供了比HTTP更高的安全性,使用对称和非对称加密算法以及数字证书来确保数据传输的安全。

    Integrating Microsoft Clarity into Your Next.js Project

    This blog post guides you through integrating Microsoft Clarity, a powerful, free tool for understanding user behavior, into a Next.js 14 project using the built-in `<Script>` component, ensuring efficient and secure script loading for optimizing website performance and enhancing user experience.

    解决 UIWebView' was deprecated in ios 12

    UIWebView 在 iOS 12.0 中被弃用,应使用 WKWebView 替代,如示例代码所示。

    Tailscale 使用 CL 限制对设备的访问

    Tailscale 是一种VPN工具,通过其命令行界面可以安全地连接设备和网络,并使用特定命令限制或允许特定用户对设备的访问。