Skip to content

Commit b4d2c2b

Browse files
Add “Using in your project” section to readme
1 parent c47458f commit b4d2c2b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,31 @@ guard let string = String(bytes: parser.read(while: { $0 != 0 }), encoding: .utf
1717
throw DecodingError.invalidStringValue
1818
}
1919
```
20+
21+
## Using Swift Collection Parser in your project
22+
23+
Add `swift-collection-parser` as a dependency to your package:
24+
25+
```swift
26+
let package = Package(
27+
// ...
28+
dependencies: [
29+
.package(url: "https://github.com/Formkunft/swift-collection-parser", .upToNextMajor(from: "2.0.0")),
30+
],
31+
targets: [
32+
.target(
33+
// ...
34+
dependencies: [
35+
.product(name: "CollectionParser", package: "swift-collection-parser"),
36+
]),
37+
]
38+
)
39+
```
40+
41+
Then, import `CollectionParser` in your code:
42+
43+
```swift
44+
import CollectionParser
45+
46+
// ...
47+
```

0 commit comments

Comments
 (0)