Skip to main content

6 docs tagged with "api"

View all tags

BFF

GraphQL and REST backends for frontends: shaping one API per client without leaking it into the domain.

Error

error 接口、哨兵错误与自定义类型、%w 包装链、errors.Is/As/Join、panic 与 recover 的同 goroutine 边界、包设计与 internal/ 的导入约束、导入环、服务错误分类与对外错误码,以及导出标识符和弃用注释的兼容性规则、init 失败只能 panic 的处理。

Feature: Interop

Mixing Java, Kotlin and Scala in one build: the bytecode contract, the guarantees that vanish across the boundary, and how to choose.

Feature: Interop

The five unsafe abilities, the invariants they transfer to the developer, and the ABI contract at a foreign function boundary.

OOP

接口值为什么不是 nil、隐式满足与方法集规则、typed nil 陷阱、类型断言与类型 switch、消费方小接口,以及泛型的类型参数、comparable 与 ~ 近似项、联合约束、实例化与类型推断、接口与泛型的选型边界和装箱成本、约束接口不能作变量类型、类型参数的编译期检查。

OOP

Traits as contracts, generics that monomorphize, and Result-based errors that make every failure part of the signature.