package
Version:
v0.7.2
Opens a new window with list of versions in this module.
Published: Aug 18, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package scalar 提供跨领域复用的基础标量转换。
Int64 将常见的 JSON/Go 数值及十进制整数字符串转换为 int64。
浮点数沿用现有数据层的截断行为;超出 int64 可表达范围的值返回 false。
String 将可选值转换为字符串;nil 保持为空字符串。
浮点数的展示格式沿用 fmt.Sprint。CLI 若需要兼容旧输出中的浮点截断,
应在 CLI 自己的 wrapper 中处理,不在共享包中引入展示语义。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.