Compare commits
1 commit
main
...
dx-audit-9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4e18fb01a |
25 changed files with 270 additions and 76 deletions
|
|
@ -1,12 +0,0 @@
|
|||
name: Security Scan
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev, 'feat/*']
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
security:
|
||||
uses: core/go-devops/.forgejo/workflows/security-scan.yml@main
|
||||
secrets: inherit
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
uses: core/go-devops/.forgejo/workflows/go-test.yml@main
|
||||
with:
|
||||
race: true
|
||||
coverage: true
|
||||
220
AUDIT-DX.md
Normal file
220
AUDIT-DX.md
Normal file
|
|
@ -0,0 +1,220 @@
|
|||
# Developer Experience (DX) Audit
|
||||
|
||||
## Onboarding
|
||||
|
||||
### Time to First Build
|
||||
- How long?
|
||||
|
||||
The first build is very fast.
|
||||
|
||||
```bash
|
||||
time go build -o trix cmd/trix/main.go
|
||||
```
|
||||
|
||||
Output:
|
||||
```
|
||||
real 0m0.242s
|
||||
user 0m0.408s
|
||||
sys 0m0.203s
|
||||
```
|
||||
|
||||
### Dependencies
|
||||
- Easy to install?
|
||||
|
||||
Go module dependencies are automatically handled by the `go` command (e.g., `go build`), which is standard and easy for Go developers.
|
||||
|
||||
The project has a couple of external dependencies for development:
|
||||
- `mkdocs` and `mkdocs-material` for documentation, installed via `pip`.
|
||||
- `task` for running scripts in `Taskfile.yml`.
|
||||
|
||||
The `README.md` clearly states the `mkdocs` dependency. The `task` dependency is implied by the presence of `Taskfile.yml`. Adding an "Installation" or "Setup" section to the `README.md` to list all development dependencies would be a small improvement.
|
||||
|
||||
### Documentation
|
||||
- Clear enough?
|
||||
|
||||
The documentation is excellent.
|
||||
- The `README.md` provides a great starting point with clear installation instructions, quick start examples, and an overview of the project structure.
|
||||
- The `docs` directory contains a well-organized MkDocs site with more in-depth documentation.
|
||||
- The `CLAUDE.md` file is a fantastic and forward-thinking addition for AI-assisted development.
|
||||
- The `rfcs` directory provides valuable insight into the design decisions of the project.
|
||||
|
||||
### Gotchas
|
||||
- Undocumented issues?
|
||||
|
||||
1. **`task` dependency:** The use of `task` is not explicitly mentioned in the `README.md`. A new developer might need to install it (`npm install -g @go-task/cli`).
|
||||
2. **Go 1.25 `covdata` issue:** When running tests with Go 1.25, an error `go: no such tool "covdata"` can occur. This requires a one-time fix: `go env -w GOTOOLCHAIN=go1.25.0+auto`. This should be documented.
|
||||
|
||||
## Development Workflow
|
||||
|
||||
### Local Development
|
||||
- Hot reload?
|
||||
- Not applicable for this CLI tool.
|
||||
- Fast feedback loop?
|
||||
- Yes. The fast build and test times provide a quick feedback loop.
|
||||
- Easy debugging?
|
||||
- Yes. Standard Go debugging tools (e.g., Delve) can be used. No special configuration is needed.
|
||||
|
||||
### Testing
|
||||
- Fast test runs?
|
||||
- Yes, the entire test suite runs in under 4 seconds.
|
||||
```
|
||||
real 0m3.883s
|
||||
user 0m8.490s
|
||||
sys 0m4.064s
|
||||
```
|
||||
- Easy to run single test?
|
||||
- Yes, the `CLAUDE.md` file provides clear instructions for running single tests using the standard `go test -run` command.
|
||||
- Good test output?
|
||||
- Yes, the `task test` command provides verbose output, including test names, status, and a final coverage percentage. The output is easy to read and understand.
|
||||
|
||||
### Build System
|
||||
- Intuitive commands?
|
||||
- Yes, the `Taskfile.yml` provides a clear and intuitive set of commands (`test`, `build`, `fmt`, `vet`). The standard `go` commands also work as expected.
|
||||
- Clear error messages?
|
||||
- Yes, the build system's error messages (from `go build`, `go test`, etc.) are standard and clear to Go developers.
|
||||
- Incremental builds?
|
||||
- Yes, Go's build system provides incremental builds by default.
|
||||
|
||||
### Tooling
|
||||
- IDE Support - Editor configs?
|
||||
- There are no editor-specific configurations (e.g., `.vscode/`, `.editorconfig`) in the repository. Adding an `.editorconfig` file would be a good practice to ensure consistent formatting across different editors.
|
||||
- Linting - Auto-fixable?
|
||||
- The `task vet` command runs `go vet`, which is a standard linter for Go. It does not provide auto-fixing. More advanced linters like `golangci-lint` could be added for more comprehensive checks and auto-fixing capabilities.
|
||||
- Formatting - Pre-commit hooks?
|
||||
- The `task fmt` command runs `go fmt`. There are no pre-commit hooks configured to automatically format code before committing. This would be a valuable addition to maintain a consistent code style.
|
||||
- Type Checking - Type hints?
|
||||
- Go is a statically typed language, so type checking is a core feature.
|
||||
|
||||
## CLI/Interface
|
||||
|
||||
### Help Text
|
||||
- Useful --help?
|
||||
|
||||
The `--help` output is clear and well-structured, thanks to the Cobra library.
|
||||
|
||||
```
|
||||
trix is a command-line tool for working with the .trix file format, which is used for storing encrypted data.
|
||||
|
||||
Usage:
|
||||
trix [command]
|
||||
|
||||
Available Commands:
|
||||
base64 Apply the base64 sigil
|
||||
blake2b-256 Apply the blake2b-256 sigil
|
||||
blake2b-384 Apply the blake2b-384 sigil
|
||||
blake2b-512 Apply the blake2b-512 sigil
|
||||
blake2s-256 Apply the blake2s-256 sigil
|
||||
completion Generate the autocompletion script for the specified shell
|
||||
decode Decode a .trix file
|
||||
encode Encode a file to the .trix format
|
||||
gzip Apply the gzip sigil
|
||||
hash Hash a file using a specified algorithm
|
||||
help Help about any command
|
||||
hex Apply the hex sigil
|
||||
json Apply the json sigil
|
||||
json-indent Apply the json-indent sigil
|
||||
md4 Apply the md4 sigil
|
||||
md5 Apply the md5 sigil
|
||||
reverse Apply the reverse sigil
|
||||
ripemd160 Apply the ripemd160 sigil
|
||||
sha1 Apply the sha1 sigil
|
||||
sha224 Apply the sha224 sigil
|
||||
sha256 Apply the sha256 sigil
|
||||
sha3-224 Apply the sha3-224 sigil
|
||||
sha3-256 Apply the sha3-256 sigil
|
||||
sha3-384 Apply the sha3-384 sigil
|
||||
sha3-512 Apply the sha3-512 sigil
|
||||
sha384 Apply the sha384 sigil
|
||||
sha512 Apply the sha512 sigil
|
||||
sha512-224 Apply the sha512-224 sigil
|
||||
sha512-256 Apply the sha512-256 sigil
|
||||
|
||||
Flags:
|
||||
-h, --help help for trix
|
||||
|
||||
Use "trix [command] --help" for more information about a command.
|
||||
```
|
||||
|
||||
The large number of sigil commands in the root help output could be overwhelming. Grouping the sigil commands under a single `sigil` subcommand (e.g., `trix sigil base64`) might improve the user experience.
|
||||
|
||||
The help text for the `encode` subcommand is clear, but it's missing information about how to apply sigils.
|
||||
|
||||
```
|
||||
Encode a file to the .trix format
|
||||
|
||||
Usage:
|
||||
trix encode [flags]
|
||||
|
||||
Flags:
|
||||
-h, --help help for encode
|
||||
-i, --input string Input file (or stdin)
|
||||
-m, --magic string Magic number (4 bytes)
|
||||
-o, --output string Output file
|
||||
```
|
||||
|
||||
The `README.md` shows that sigils are passed as positional arguments (e.g., `trix encode --output message.trix --magic TRIX base64`), but this is not mentioned in the help text. Adding a `[sigils...]` to the `Usage` string would make this clearer.
|
||||
|
||||
Similarly, the `decode` subcommand is also missing the `[sigils...]` positional argument in its usage string.
|
||||
|
||||
```
|
||||
Decode a .trix file
|
||||
|
||||
Usage:
|
||||
trix decode [flags]
|
||||
|
||||
Flags:
|
||||
-h, --help help for decode
|
||||
-i, --input string Input file (or stdin)
|
||||
-m, --magic string Magic number (4 bytes)
|
||||
-o, --output string Output file
|
||||
```
|
||||
|
||||
### Error Messages
|
||||
- Actionable?
|
||||
|
||||
Yes, the error messages are actionable and provide good feedback to the user. For example, providing an invalid hash algorithm to the `hash` command produces the following output:
|
||||
|
||||
```
|
||||
Error: invalid hash algorithm: invalid-algorithm
|
||||
Usage:
|
||||
trix hash [algorithm] [flags]
|
||||
|
||||
Flags:
|
||||
-h, --help help for hash
|
||||
-i, --input string Input file (or stdin)
|
||||
```
|
||||
|
||||
This is a good error message because it:
|
||||
1. Clearly states what is wrong ("invalid hash algorithm").
|
||||
2. Shows the invalid value that was provided ("invalid-algorithm").
|
||||
3. Prints the usage information for the command, which helps the user correct the input.
|
||||
|
||||
### Progress Feedback
|
||||
- Long operations?
|
||||
|
||||
- The tool is designed for local data transformation and is very fast. There are no long-running operations that would require progress feedback.
|
||||
|
||||
### Configuration
|
||||
- Sensible defaults?
|
||||
|
||||
- The CLI has sensible defaults. For example, the `input` and `output` flags default to stdin and stdout, respectively, which is a common and useful convention for CLI tools.
|
||||
|
||||
## Pain Points
|
||||
- **Undocumented Dependencies:** The `task` dependency and the `GOTOOLCHAIN` fix for Go 1.25 are not documented, which could cause minor frustration for new contributors.
|
||||
- **CLI Usability:** The large number of sigil commands in the root help output can be overwhelming, and the `encode`/`decode` help texts are missing information about sigils.
|
||||
- **Lack of Automated Tooling:** The absence of pre-commit hooks for formatting and more advanced linting means that maintaining code quality relies more on manual developer effort.
|
||||
|
||||
## Suggestions for Improvement
|
||||
|
||||
1. **Documentation:**
|
||||
- Add a "Development" or "Contributing" section to the `README.md` that explicitly lists all development dependencies (`task`, `mkdocs`).
|
||||
- Add a note about the `GOTOOLCHAIN` fix for Go 1.25 to the "Development" section.
|
||||
|
||||
2. **CLI:**
|
||||
- Consider grouping the sigil commands under a single `sigil` subcommand (e.g., `trix sigil base64`) to declutter the root command's help output.
|
||||
- Add `[sigils...]` to the `Usage` string for the `encode` and `decode` subcommands to make it clear that they accept sigils as positional arguments.
|
||||
|
||||
3. **Tooling:**
|
||||
- Add an `.editorconfig` file to ensure consistent formatting across different editors.
|
||||
- Add a pre-commit hook (e.g., using Husky or a similar tool) to automatically run `go fmt` before each commit.
|
||||
- Consider adding a more advanced linter like `golangci-lint` to the `Taskfile.yml` and the pre-commit hooks to catch a wider range of issues automatically.
|
||||
|
|
@ -5,9 +5,9 @@ import (
|
|||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/enchantrix"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/enchantrix"
|
||||
"github.com/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/enchantrix"
|
||||
"github.com/Snider/Enchantrix/pkg/enchantrix"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/trix"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
19
go.mod
19
go.mod
|
|
@ -1,23 +1,20 @@
|
|||
module forge.lthn.ai/Snider/Enchantrix
|
||||
module github.com/Snider/Enchantrix
|
||||
|
||||
go 1.25
|
||||
|
||||
require (
|
||||
github.com/ProtonMail/go-crypto v1.3.0
|
||||
github.com/spf13/cobra v1.10.2
|
||||
github.com/spf13/cobra v1.10.1
|
||||
github.com/stretchr/testify v1.11.1
|
||||
golang.org/x/crypto v0.48.0
|
||||
golang.org/x/crypto v0.43.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/cloudflare/circl v1.6.3 // indirect
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||
github.com/cloudflare/circl v1.6.0 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/kr/pretty v0.3.1 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
||||
github.com/rogpeppe/go-internal v1.14.1 // indirect
|
||||
github.com/spf13/pflag v1.0.10 // indirect
|
||||
golang.org/x/sys v0.41.0 // indirect
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/spf13/pflag v1.0.9 // indirect
|
||||
golang.org/x/sys v0.37.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
|
|
|||
25
go.sum
25
go.sum
|
|
@ -1,23 +1,26 @@
|
|||
github.com/ProtonMail/go-crypto v1.3.0 h1:ILq8+Sf5If5DCpHQp4PbZdS1J7HDFRXz/+xKBiRGFrw=
|
||||
github.com/ProtonMail/go-crypto v1.3.0/go.mod h1:9whxjD8Rbs29b4XWbB8irEcE8KHMqaR2e7GWU1R+/PE=
|
||||
github.com/cloudflare/circl v1.6.3 h1:9GPOhQGF9MCYUeXyMYlqTR6a5gTrgR/fBLXvUgtVcg8=
|
||||
github.com/cloudflare/circl v1.6.0 h1:cr5JKic4HI+LkINy2lg3W2jF8sHCVTBncJr5gIIq7qk=
|
||||
github.com/cloudflare/circl v1.6.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
|
||||
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
|
||||
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
|
||||
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
|
||||
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
|
||||
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
|
||||
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
|
||||
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
||||
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||
golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=
|
||||
golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
|
||||
golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04=
|
||||
golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0=
|
||||
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
|
||||
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt/std/lthn"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt/std/pgp"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt/std/rsa"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt/std/lthn"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt/std/pgp"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt/std/rsa"
|
||||
)
|
||||
|
||||
// Service is the main struct for the crypt service.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
)
|
||||
|
||||
func ExampleService_Hash() {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"testing"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/enchantrix"
|
||||
"github.com/Snider/Enchantrix/pkg/enchantrix"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/enchantrix"
|
||||
"github.com/Snider/Enchantrix/pkg/enchantrix"
|
||||
)
|
||||
|
||||
func ExampleTransmute() {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"time"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/enchantrix"
|
||||
"github.com/Snider/Enchantrix/pkg/enchantrix"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bytes"
|
||||
"testing"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/trix"
|
||||
)
|
||||
|
||||
func ExampleEncode() {
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/enchantrix"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/enchantrix"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
|
||||
"forge.lthn.ai/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/Snider/Enchantrix/pkg/crypt"
|
||||
"github.com/Snider/Enchantrix/pkg/trix"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue