This commit makes the magic number in the trix file format configurable. - The `Encode` and `Decode` functions in the `trix` package now accept a `magicNumber` string as a parameter. - The example in `examples/main.go` has been updated to demonstrate the use of the new configurable magic number. - The tests for the `trix` package have been updated to verify the new functionality, including tests for invalid magic numbers.
12 lines
166 B
YAML
12 lines
166 B
YAML
version: '3'
|
|
|
|
tasks:
|
|
test:
|
|
desc: "Run all tests"
|
|
cmds:
|
|
- go test -v ./...
|
|
|
|
build:
|
|
desc: "Build the project"
|
|
cmds:
|
|
- go build -v ./...
|