美文网首页
Vapor 2.0 - 使用位(Using Bits)

Vapor 2.0 - 使用位(Using Bits)

作者: 韩云智VL | 来源:发表于2017-08-15 11:21 被阅读0次

前往 Vapor 2.0 - 文档目录

带有Vapor(With Vapor)

默认情况下,该包附件包含在Vapor中,只需添加:

import Bits

不带有Vapor(Without Vapor)

位为任何服务器端的Swift项目提供了大量的字节操作便利。要将其包含在您的包中,请将以下内容添加到您的Package.swift文件中。


let package = Package(
    name: "Project",
    dependencies: [
        ...
        .Package(url: "https://github.com/vapor/bits.git", majorVersion: 1)
    ],
    exclude: [ ... ]
)

使用import Bits访问位(Bits)的API。

相关文章

网友评论

      本文标题:Vapor 2.0 - 使用位(Using Bits)

      本文链接:https://www.haomeiwen.com/subject/skpmrxtx.html