ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Go 对已经关闭的 channel 进行读写,会怎么样?

    Mar 25, 20231 min read

    如果一个 channel 已经被关闭,读取操作仍可以从 channel 中读取剩余的数据,但不会再有新数据可供读取,并且读取操作将立即返回零值和一个标志,表示 channel 已经关闭。写入操作将导致 panic,因为不能向已关闭的 channel 写入数据。

    相关文章

    什么是BSD 3-clause 许可证?

    BSD 3-clause许可证是一种允许自由复制、分发、修改和再授权软件的开放源代码许可证,常用于商业软件和开发工具,并要求包含原始版权、限制性和责任声明。

    Flutter 获取当前时间

    Flutter中的`DateUtil`类提供了一系列方法来处理日期和时间,包括获取、格式化和比较日期,以及处理时区和闰年判断。

    Flutter Can't load Kernel binary: Invalid kernel binary format version.

    To fix the error caused by a version mismatch between Flutter and Dart SDKs, ensure both are updated, clear Flutter's cache, or reinstall Flutter, and seek community help if needed.

    ls -alh

    在Linux中,使用`ls -alh`命令显示的文件大小单位为K、M等,如4.0K、567K、1.6M等。

    如何用CSS实现鼠标跟随动画效果?

    使用CSS的`transform`和`transition`属性结合JavaScript监听鼠标移动事件,可以实现鼠标跟随动画效果。