@colin4k1024/tsp 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +676 -0
- package/agents/roles/architect.md +119 -0
- package/agents/roles/backend-engineer.md +131 -0
- package/agents/roles/devops-engineer.md +113 -0
- package/agents/roles/frontend-engineer.md +118 -0
- package/agents/roles/product-manager.md +120 -0
- package/agents/roles/project-manager.md +104 -0
- package/agents/roles/qa-engineer.md +128 -0
- package/agents/roles/tech-lead.md +137 -0
- package/agents/specialists/architect.md +37 -0
- package/agents/specialists/build-error-resolver.md +38 -0
- package/agents/specialists/chief-of-staff.md +35 -0
- package/agents/specialists/code-reviewer.md +35 -0
- package/agents/specialists/cpp-build-resolver.md +34 -0
- package/agents/specialists/cpp-reviewer.md +33 -0
- package/agents/specialists/database-reviewer.md +36 -0
- package/agents/specialists/doc-updater.md +34 -0
- package/agents/specialists/docs-lookup.md +34 -0
- package/agents/specialists/e2e-runner.md +39 -0
- package/agents/specialists/go-build-resolver.md +34 -0
- package/agents/specialists/go-reviewer.md +34 -0
- package/agents/specialists/harness-optimizer.md +35 -0
- package/agents/specialists/java-build-resolver.md +34 -0
- package/agents/specialists/java-reviewer.md +36 -0
- package/agents/specialists/kotlin-build-resolver.md +34 -0
- package/agents/specialists/kotlin-reviewer.md +33 -0
- package/agents/specialists/loop-operator.md +38 -0
- package/agents/specialists/planner.md +35 -0
- package/agents/specialists/python-reviewer.md +34 -0
- package/agents/specialists/pytorch-build-resolver.md +34 -0
- package/agents/specialists/refactor-cleaner.md +35 -0
- package/agents/specialists/rust-build-resolver.md +34 -0
- package/agents/specialists/rust-reviewer.md +33 -0
- package/agents/specialists/security-reviewer.md +35 -0
- package/agents/specialists/tdd-guide.md +38 -0
- package/agents/specialists/typescript-reviewer.md +35 -0
- package/bin/lib/embedded-installer.js +93 -0
- package/bin/lib/install-surface.js +157 -0
- package/bin/lib/post-install-bridge.js +325 -0
- package/bin/lib/post-install-rtk.js +80 -0
- package/bin/lib/source-installer.js +151 -0
- package/bin/lib/ui.js +88 -0
- package/bin/lib/wizard.js +114 -0
- package/bin/prebuilt/README.md +11 -0
- package/bin/prebuilt/darwin-arm64/oris-claude-bridge +0 -0
- package/bin/prebuilt/darwin-x64/oris-claude-bridge +0 -0
- package/bin/prebuilt/linux-arm64/oris-claude-bridge +0 -0
- package/bin/prebuilt/linux-x64/oris-claude-bridge +0 -0
- package/bin/prebuilt/win32-x64/oris-claude-bridge.exe +0 -0
- package/bin/tsp-create.js +218 -0
- package/bin/tsp-install.js +6 -0
- package/commands/agent-dev.md +44 -0
- package/commands/aside.md +164 -0
- package/commands/build-fix.md +31 -0
- package/commands/checkpoint.md +74 -0
- package/commands/claw.md +23 -0
- package/commands/code-review.md +49 -0
- package/commands/context-budget.md +23 -0
- package/commands/cpp-build.md +173 -0
- package/commands/cpp-review.md +132 -0
- package/commands/cpp-test.md +251 -0
- package/commands/devfleet.md +23 -0
- package/commands/docs.md +23 -0
- package/commands/e2e.md +268 -0
- package/commands/eval.md +23 -0
- package/commands/evolve.md +210 -0
- package/commands/gan-build.md +99 -0
- package/commands/gan-design.md +35 -0
- package/commands/go-build.md +183 -0
- package/commands/go-review.md +148 -0
- package/commands/go-test.md +268 -0
- package/commands/gradle-build.md +70 -0
- package/commands/handoff.md +46 -0
- package/commands/harness-audit.md +35 -0
- package/commands/instinct-export.md +66 -0
- package/commands/instinct-import.md +114 -0
- package/commands/instinct-status.md +59 -0
- package/commands/kotlin-build.md +174 -0
- package/commands/kotlin-review.md +140 -0
- package/commands/kotlin-test.md +312 -0
- package/commands/learn-eval.md +152 -0
- package/commands/learn.md +104 -0
- package/commands/loop-start.md +32 -0
- package/commands/loop-status.md +24 -0
- package/commands/model-route.md +26 -0
- package/commands/multi-backend.md +31 -0
- package/commands/multi-execute.md +315 -0
- package/commands/multi-frontend.md +31 -0
- package/commands/multi-plan.md +268 -0
- package/commands/multi-workflow.md +191 -0
- package/commands/orchestrate.md +135 -0
- package/commands/pause.md +29 -0
- package/commands/plan.md +30 -0
- package/commands/pm2.md +272 -0
- package/commands/projects.md +39 -0
- package/commands/promote.md +41 -0
- package/commands/prompt-optimize.md +23 -0
- package/commands/prp-commit.md +112 -0
- package/commands/prp-implement.md +385 -0
- package/commands/prp-plan.md +502 -0
- package/commands/prp-pr.md +184 -0
- package/commands/prp-prd.md +447 -0
- package/commands/prune.md +31 -0
- package/commands/pua.md +37 -0
- package/commands/python-review.md +297 -0
- package/commands/quality-gate.md +29 -0
- package/commands/quick.md +33 -0
- package/commands/refactor-clean.md +80 -0
- package/commands/replay.md +46 -0
- package/commands/resume-session.md +156 -0
- package/commands/resume.md +31 -0
- package/commands/rules-distill.md +20 -0
- package/commands/rust-build.md +187 -0
- package/commands/rust-review.md +142 -0
- package/commands/rust-test.md +308 -0
- package/commands/santa-loop.md +175 -0
- package/commands/save-session.md +275 -0
- package/commands/sessions.md +333 -0
- package/commands/setup-pm.md +80 -0
- package/commands/skill-create.md +174 -0
- package/commands/skill-health.md +54 -0
- package/commands/tdd.md +31 -0
- package/commands/team-closeout.md +49 -0
- package/commands/team-execute.md +83 -0
- package/commands/team-help.md +41 -0
- package/commands/team-intake.md +50 -0
- package/commands/team-plan.md +105 -0
- package/commands/team-release.md +71 -0
- package/commands/team-review.md +80 -0
- package/commands/test-coverage.md +69 -0
- package/commands/trigger-pipeline.md +25 -0
- package/commands/update-codemaps.md +32 -0
- package/commands/update-docs.md +84 -0
- package/commands/verify.md +32 -0
- package/contexts/dev.md +5 -0
- package/contexts/research.md +5 -0
- package/contexts/review.md +5 -0
- package/crates/oris-claude-bridge/Cargo.lock +4187 -0
- package/crates/oris-claude-bridge/Cargo.toml +36 -0
- package/crates/oris-claude-bridge/Cross.toml +35 -0
- package/crates/oris-claude-bridge/src/claude_gene.rs +85 -0
- package/crates/oris-claude-bridge/src/env_fingerprint.rs +47 -0
- package/crates/oris-claude-bridge/src/evolution_state.rs +120 -0
- package/crates/oris-claude-bridge/src/gene_store.rs +290 -0
- package/crates/oris-claude-bridge/src/governor.rs +89 -0
- package/crates/oris-claude-bridge/src/main.rs +85 -0
- package/crates/oris-claude-bridge/src/replay.rs +81 -0
- package/crates/oris-claude-bridge/src/replay_graph.rs +105 -0
- package/crates/oris-claude-bridge/src/signal.rs +150 -0
- package/crates/oris-claude-bridge/src/solidify.rs +89 -0
- package/crates/oris-claude-bridge/src/solidify_graph.rs +201 -0
- package/crates/oris-claude-bridge/src/stats.rs +83 -0
- package/crates/oris-claude-bridge/src/store.rs +177 -0
- package/examples/INDEX.md +232 -0
- package/examples/ai-eval-platform-CLAUDE.md +82 -0
- package/examples/claude-conversation-script.md +107 -0
- package/examples/claude-scenario-playbook.md +113 -0
- package/examples/codex-conversation-script.md +111 -0
- package/examples/codex-scenario-playbook.md +123 -0
- package/examples/data-analytics-dashboard-CLAUDE.md +86 -0
- package/examples/data-ml-pipeline-CLAUDE.md +81 -0
- package/examples/data-observability-quality-CLAUDE.md +77 -0
- package/examples/enterprise-overlay-output-playbook.md +5 -0
- package/examples/enterprise-overlay-scenario-playbook.md +5 -0
- package/examples/full-lifecycle-demo-30min.md +458 -0
- package/examples/full-lifecycle-demo.md +446 -0
- package/examples/github-actions-supply-chain-CLAUDE.md +83 -0
- package/examples/iac-kubernetes-platform-CLAUDE.md +81 -0
- package/examples/internal-developer-platform-CLAUDE.md +79 -0
- package/examples/mobile-miniapp-CLAUDE.md +83 -0
- package/examples/platform-governance-CLAUDE.md +82 -0
- package/examples/plugin-extension-platform-CLAUDE.md +80 -0
- package/examples/project-CLAUDE.md +97 -0
- package/examples/project-type-starter-playbook.md +435 -0
- package/examples/role-conversation-scripts.md +65 -0
- package/examples/saas-nextjs-CLAUDE.md +106 -0
- package/examples/security-compliance-platform-CLAUDE.md +78 -0
- package/examples/springboot-service-CLAUDE.md +111 -0
- package/examples/user-CLAUDE.md +39 -0
- package/examples/vertical-project-conversation-scripts.md +427 -0
- package/examples/workflow-enterprise-CLAUDE.md +5 -0
- package/hooks/README.md +227 -0
- package/hooks/harness-context-monitor.js +113 -0
- package/hooks/harness-prompt-guard.js +97 -0
- package/hooks/harness-statusline.js +112 -0
- package/hooks/hooks.json +499 -0
- package/hooks/memory-persistence/README.md +97 -0
- package/hooks/memory-persistence/session-end.js +183 -0
- package/hooks/memory-persistence/session-start.js +327 -0
- package/hooks/pre-bash-block-no-verify.js +51 -0
- package/hooks/rtk-rewrite.sh +76 -0
- package/hooks/strategic-compact/README.md +71 -0
- package/hooks/strategic-compact/pre-compact.js +169 -0
- package/hooks/strategic-compact/suggest-compact.js +190 -0
- package/install.ps1 +76 -0
- package/install.sh +48 -0
- package/manifests/install-components.json +448 -0
- package/manifests/install-modules.json +825 -0
- package/manifests/install-profiles.json +110 -0
- package/manifests/model-profiles.json +66 -0
- package/marketplace.json +51 -0
- package/mcp-configs/mcp-servers.json +32 -0
- package/package.json +116 -0
- package/roles/architect/role.yaml +102 -0
- package/roles/backend-engineer/role.yaml +128 -0
- package/roles/devops-engineer/role.yaml +96 -0
- package/roles/frontend-engineer/role.yaml +101 -0
- package/roles/product-manager/role.yaml +103 -0
- package/roles/project-manager/role.yaml +87 -0
- package/roles/qa-engineer/role.yaml +125 -0
- package/roles/tech-lead/role.yaml +149 -0
- package/rules/README.md +31 -0
- package/rules/artifact-standards.md +139 -0
- package/rules/common/README.md +9 -0
- package/rules/common/agents.md +19 -0
- package/rules/common/coding-style.md +20 -0
- package/rules/common/development-workflow.md +45 -0
- package/rules/common/enterprise-architecture-governance.md +40 -0
- package/rules/common/enterprise-component-baseline.md +35 -0
- package/rules/common/git-workflow.md +15 -0
- package/rules/common/hooks.md +13 -0
- package/rules/common/patterns.md +14 -0
- package/rules/common/performance.md +13 -0
- package/rules/common/quality-gates-taxonomy.md +96 -0
- package/rules/common/security.md +33 -0
- package/rules/common/testing.md +22 -0
- package/rules/cpp/coding-style.md +44 -0
- package/rules/cpp/hooks.md +39 -0
- package/rules/cpp/patterns.md +51 -0
- package/rules/cpp/security.md +51 -0
- package/rules/cpp/testing.md +44 -0
- package/rules/csharp/coding-style.md +72 -0
- package/rules/csharp/hooks.md +25 -0
- package/rules/csharp/patterns.md +50 -0
- package/rules/csharp/security.md +58 -0
- package/rules/csharp/testing.md +46 -0
- package/rules/escalation-policy.md +16 -0
- package/rules/frontend-design-knowledge-base.md +43 -0
- package/rules/frontend-engineering-standards.md +55 -0
- package/rules/frontend-quality-gates.md +38 -0
- package/rules/frontend-ui-ux-standards.md +49 -0
- package/rules/golang/README.md +8 -0
- package/rules/golang/coding-style.md +12 -0
- package/rules/golang/testing.md +12 -0
- package/rules/handoff-contract.md +50 -0
- package/rules/java/README.md +14 -0
- package/rules/java/coding-style.md +15 -0
- package/rules/java/database.md +44 -0
- package/rules/java/enterprise-java.md +29 -0
- package/rules/java/jpa.md +13 -0
- package/rules/java/redis.md +29 -0
- package/rules/java/security.md +13 -0
- package/rules/java/springboot.md +14 -0
- package/rules/java/testing.md +13 -0
- package/rules/kotlin/coding-style.md +86 -0
- package/rules/kotlin/hooks.md +17 -0
- package/rules/kotlin/patterns.md +146 -0
- package/rules/kotlin/security.md +82 -0
- package/rules/kotlin/testing.md +128 -0
- package/rules/perl/coding-style.md +46 -0
- package/rules/perl/hooks.md +22 -0
- package/rules/perl/patterns.md +76 -0
- package/rules/perl/security.md +69 -0
- package/rules/perl/testing.md +54 -0
- package/rules/php/coding-style.md +40 -0
- package/rules/php/hooks.md +24 -0
- package/rules/php/patterns.md +33 -0
- package/rules/php/security.md +37 -0
- package/rules/php/testing.md +39 -0
- package/rules/python/README.md +9 -0
- package/rules/python/coding-style.md +12 -0
- package/rules/python/security.md +7 -0
- package/rules/python/testing.md +12 -0
- package/rules/rust/coding-style.md +151 -0
- package/rules/rust/hooks.md +16 -0
- package/rules/rust/patterns.md +168 -0
- package/rules/rust/security.md +141 -0
- package/rules/rust/testing.md +154 -0
- package/rules/swift/coding-style.md +47 -0
- package/rules/swift/hooks.md +20 -0
- package/rules/swift/patterns.md +66 -0
- package/rules/swift/security.md +33 -0
- package/rules/swift/testing.md +45 -0
- package/rules/team-operating-model.md +30 -0
- package/rules/typescript/README.md +11 -0
- package/rules/typescript/coding-style.md +13 -0
- package/rules/typescript/frontend.md +13 -0
- package/rules/typescript/testing.md +12 -0
- package/rules/zh/README.md +108 -0
- package/rules/zh/agents.md +50 -0
- package/rules/zh/code-review.md +124 -0
- package/rules/zh/coding-style.md +48 -0
- package/rules/zh/development-workflow.md +44 -0
- package/rules/zh/git-workflow.md +24 -0
- package/rules/zh/hooks.md +30 -0
- package/rules/zh/patterns.md +31 -0
- package/rules/zh/performance.md +55 -0
- package/rules/zh/security.md +29 -0
- package/rules/zh/testing.md +29 -0
- package/schemas/ecc-install-config.schema.json +67 -0
- package/schemas/hooks.schema.json +197 -0
- package/schemas/install-components.schema.json +58 -0
- package/schemas/install-modules.schema.json +107 -0
- package/schemas/install-profiles.schema.json +45 -0
- package/schemas/install-state.schema.json +218 -0
- package/schemas/package-manager.schema.json +23 -0
- package/schemas/plugin.schema.json +58 -0
- package/schemas/provenance.schema.json +31 -0
- package/schemas/state-store.schema.json +394 -0
- package/schemas/workflow-definition.schema.json +210 -0
- package/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
- package/scripts/__pycache__/build_platform_artifacts.cpython-311.pyc +0 -0
- package/scripts/__pycache__/install_platform.cpython-311.pyc +0 -0
- package/scripts/__pycache__/langfuse_trace.cpython-311.pyc +0 -0
- package/scripts/__pycache__/query_audit_logs.cpython-311.pyc +0 -0
- package/scripts/__pycache__/scan_leaked_keys.cpython-311.pyc +0 -0
- package/scripts/__pycache__/team_skills_platform.cpython-311.pyc +0 -0
- package/scripts/__pycache__/team_skills_platform.cpython-313.pyc +0 -0
- package/scripts/__pycache__/validate_library.cpython-311.pyc +0 -0
- package/scripts/__pycache__/validate_workflow_state.cpython-311.pyc +0 -0
- package/scripts/artifact-persistence.js +970 -0
- package/scripts/build-platform-artifacts.js +84 -0
- package/scripts/build-platform-artifacts.ps1 +4 -0
- package/scripts/build-platform-artifacts.sh +7 -0
- package/scripts/build-prebuilt.sh +247 -0
- package/scripts/evolution/__pycache__/__init__.cpython-311.pyc +0 -0
- package/scripts/evolution/__pycache__/store.cpython-311.pyc +0 -0
- package/scripts/graphify-preflight.js +134 -0
- package/scripts/harness-audit.js +725 -0
- package/scripts/hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- package/scripts/hooks/__pycache__/mcp_health_check.cpython-311.pyc +0 -0
- package/scripts/hooks/__pycache__/observe.cpython-311.pyc +0 -0
- package/scripts/hooks/__pycache__/session_end.cpython-311.pyc +0 -0
- package/scripts/hooks/__pycache__/session_start.cpython-311.pyc +0 -0
- package/scripts/hooks/auto-tmux-dev.js +88 -0
- package/scripts/hooks/check-console-log.js +71 -0
- package/scripts/hooks/check-hook-enabled.js +12 -0
- package/scripts/hooks/config-protection.js +140 -0
- package/scripts/hooks/cost-tracker.js +78 -0
- package/scripts/hooks/desktop-notify.js +168 -0
- package/scripts/hooks/doc-file-warning.js +90 -0
- package/scripts/hooks/evaluate-session.js +100 -0
- package/scripts/hooks/governance-capture.js +334 -0
- package/scripts/hooks/insaits-security-wrapper.js +90 -0
- package/scripts/hooks/mcp-health-check.js +619 -0
- package/scripts/hooks/post-bash-build-complete.js +27 -0
- package/scripts/hooks/post-bash-command-log.js +73 -0
- package/scripts/hooks/post-bash-pr-created.js +36 -0
- package/scripts/hooks/post-edit-accumulator.js +78 -0
- package/scripts/hooks/post-edit-console-warn.js +54 -0
- package/scripts/hooks/post-edit-format.js +109 -0
- package/scripts/hooks/post-edit-typecheck.js +96 -0
- package/scripts/hooks/pre-bash-block-no-verify.js +51 -0
- package/scripts/hooks/pre-bash-commit-quality.js +405 -0
- package/scripts/hooks/pre-bash-dev-server-block.js +187 -0
- package/scripts/hooks/pre-bash-git-push-reminder.js +28 -0
- package/scripts/hooks/pre-bash-tmux-reminder.js +33 -0
- package/scripts/hooks/pre-compact.js +48 -0
- package/scripts/hooks/pre-write-doc-warn.js +9 -0
- package/scripts/hooks/pua-post-tool-failure.js +50 -0
- package/scripts/hooks/pua-post-tool-use.js +40 -0
- package/scripts/hooks/pua-pre-compact.js +35 -0
- package/scripts/hooks/pua-stop.js +40 -0
- package/scripts/hooks/quality-gate.js +168 -0
- package/scripts/hooks/rtk-rewrite-wrapper.js +66 -0
- package/scripts/hooks/run-with-flags-shell.sh +41 -0
- package/scripts/hooks/run-with-flags.js +181 -0
- package/scripts/hooks/session-end-marker.js +29 -0
- package/scripts/hooks/session-end.js +301 -0
- package/scripts/hooks/session-start-bootstrap.js +149 -0
- package/scripts/hooks/session-start.js +275 -0
- package/scripts/hooks/stop-format-typecheck.js +209 -0
- package/scripts/hooks/stop-hook-bootstrap.js +111 -0
- package/scripts/hooks/suggest-compact.js +80 -0
- package/scripts/install-apply.js +511 -0
- package/scripts/install-claude.ps1 +10 -0
- package/scripts/install-claude.sh +16 -0
- package/scripts/install-codex.ps1 +13 -0
- package/scripts/install-codex.sh +19 -0
- package/scripts/install-cursor.sh +16 -0
- package/scripts/install-opencode.sh +16 -0
- package/scripts/install-plan.js +266 -0
- package/scripts/install-platform.js +1082 -0
- package/scripts/langfuse-trace.js +328 -0
- package/scripts/lib/__pycache__/audit_logger.cpython-311.pyc +0 -0
- package/scripts/lib/__pycache__/audit_query.cpython-311.pyc +0 -0
- package/scripts/lib/__pycache__/hook_contract.cpython-311.pyc +0 -0
- package/scripts/lib/__pycache__/memory_store.cpython-311.pyc +0 -0
- package/scripts/lib/__pycache__/utils.cpython-311.pyc +0 -0
- package/scripts/lib/agent-compress.js +244 -0
- package/scripts/lib/audit-logger.js +82 -0
- package/scripts/lib/audit-query.js +194 -0
- package/scripts/lib/hook-flags.js +74 -0
- package/scripts/lib/inspection.js +212 -0
- package/scripts/lib/install/apply.js +214 -0
- package/scripts/lib/install/config.js +90 -0
- package/scripts/lib/install/request.js +138 -0
- package/scripts/lib/install/runtime.js +55 -0
- package/scripts/lib/install-audit-manifest.js +225 -0
- package/scripts/lib/install-executor.js +684 -0
- package/scripts/lib/install-lifecycle.js +1317 -0
- package/scripts/lib/install-manifests.js +659 -0
- package/scripts/lib/install-state.js +315 -0
- package/scripts/lib/install-targets/antigravity-project.js +85 -0
- package/scripts/lib/install-targets/augment-project.js +47 -0
- package/scripts/lib/install-targets/claude-home.js +10 -0
- package/scripts/lib/install-targets/codebuddy-project.js +47 -0
- package/scripts/lib/install-targets/codex-home.js +10 -0
- package/scripts/lib/install-targets/copilot-home.js +10 -0
- package/scripts/lib/install-targets/cursor-project.js +47 -0
- package/scripts/lib/install-targets/gemini-project.js +10 -0
- package/scripts/lib/install-targets/helpers.js +314 -0
- package/scripts/lib/install-targets/opencode-home.js +10 -0
- package/scripts/lib/install-targets/registry.js +76 -0
- package/scripts/lib/install-targets/windsurf-project.js +47 -0
- package/scripts/lib/orchestration-session.js +299 -0
- package/scripts/lib/package-manager.d.ts +119 -0
- package/scripts/lib/package-manager.js +431 -0
- package/scripts/lib/project-detect.js +428 -0
- package/scripts/lib/pua-state.js +123 -0
- package/scripts/lib/release-health.js +82 -0
- package/scripts/lib/resolve-ecc-root.js +104 -0
- package/scripts/lib/resolve-formatter.js +185 -0
- package/scripts/lib/session-adapters/canonical-session.js +531 -0
- package/scripts/lib/session-adapters/claude-history.js +160 -0
- package/scripts/lib/session-adapters/dmux-tmux.js +90 -0
- package/scripts/lib/session-adapters/registry.js +127 -0
- package/scripts/lib/session-aliases.d.ts +136 -0
- package/scripts/lib/session-aliases.js +481 -0
- package/scripts/lib/session-manager.d.ts +132 -0
- package/scripts/lib/session-manager.js +533 -0
- package/scripts/lib/shell-split.js +86 -0
- package/scripts/lib/skill-evolution/dashboard.js +401 -0
- package/scripts/lib/skill-evolution/health.js +263 -0
- package/scripts/lib/skill-evolution/index.js +20 -0
- package/scripts/lib/skill-evolution/provenance.js +187 -0
- package/scripts/lib/skill-evolution/tracker.js +146 -0
- package/scripts/lib/skill-evolution/versioning.js +237 -0
- package/scripts/lib/skill-improvement/amendify.js +89 -0
- package/scripts/lib/skill-improvement/evaluate.js +59 -0
- package/scripts/lib/skill-improvement/health.js +118 -0
- package/scripts/lib/skill-improvement/observations.js +108 -0
- package/scripts/lib/state-store/index.js +191 -0
- package/scripts/lib/state-store/migrations.js +295 -0
- package/scripts/lib/state-store/queries.js +852 -0
- package/scripts/lib/state-store/schema.js +93 -0
- package/scripts/lib/team-skills-data.json +1318 -0
- package/scripts/lib/team-skills-platform.js +581 -0
- package/scripts/lib/tmux-worktree-orchestrator.js +598 -0
- package/scripts/lib/utils.d.ts +196 -0
- package/scripts/lib/utils.js +625 -0
- package/scripts/lib/workflow/discovery.js +105 -0
- package/scripts/lib/workflow/errors.js +33 -0
- package/scripts/lib/workflow/executor.js +350 -0
- package/scripts/lib/workflow/loader.js +173 -0
- package/scripts/lib/workflow/registry.js +102 -0
- package/scripts/lib/workflow/schema.js +66 -0
- package/scripts/lib/workflow/template.js +149 -0
- package/scripts/lib/workflow/types.d.ts +177 -0
- package/scripts/lib/workflow/types.js +27 -0
- package/scripts/lib/workflow-help-catalog.json +208 -0
- package/scripts/post-install-bridge.js +46 -0
- package/scripts/query-audit-logs.js +171 -0
- package/scripts/release-health-summary.js +297 -0
- package/scripts/release.sh +106 -0
- package/scripts/scan-leaked-keys.js +166 -0
- package/scripts/sync-prebuilt-from-github.js +521 -0
- package/scripts/trigger-gitlab-pipeline.js +165 -0
- package/scripts/validate-doc-freshness.js +321 -0
- package/scripts/validate-file-references.js +356 -0
- package/scripts/validate-library.js +487 -0
- package/scripts/validate-library.ps1 +4 -0
- package/scripts/validate-library.sh +7 -0
- package/scripts/validate-packed-tarball.js +149 -0
- package/scripts/validate-prebuilt.js +113 -0
- package/scripts/validate-skill-structure.js +256 -0
- package/scripts/validate-workflow-state.js +378 -0
- package/scripts/validate-workflows.js +99 -0
- package/scripts/workflow-help.js +648 -0
- package/scripts/workflow-list.js +133 -0
- package/scripts/workflow-readiness.js +259 -0
- package/scripts/workflow-run.js +553 -0
- package/scripts/workflow-runs.js +217 -0
- package/skills/adk-framework-adapters/SKILL.md +76 -0
- package/skills/adk-framework-adapters/references/agentscope.md +261 -0
- package/skills/adk-framework-adapters/references/autogen.md +206 -0
- package/skills/adk-framework-adapters/references/crewai.md +251 -0
- package/skills/adk-framework-adapters/references/eino.md +264 -0
- package/skills/adk-framework-adapters/references/langchain.md +193 -0
- package/skills/agent-dev-workshop/SKILL.md +296 -0
- package/skills/agent-dev-workshop/agents/openai.yaml +4 -0
- package/skills/agent-dev-workshop/references/phase1-discovery.md +124 -0
- package/skills/agent-dev-workshop/references/phase2-architecture.md +146 -0
- package/skills/agent-dev-workshop/references/phase3-tools.md +174 -0
- package/skills/agent-dev-workshop/references/phase4-prompts.md +269 -0
- package/skills/agent-dev-workshop/references/phase5-codegen.md +182 -0
- package/skills/agent-dev-workshop/references/phase6-verification.md +160 -0
- package/skills/agent-dev-workshop/references/shared.md +123 -0
- package/skills/agent-eval/SKILL.md +145 -0
- package/skills/agent-harness-construction/SKILL.md +73 -0
- package/skills/agent-patterns-catalog/SKILL.md +74 -0
- package/skills/agent-patterns-catalog/references/autonomous-agent.md +151 -0
- package/skills/agent-patterns-catalog/references/multi-agent-conversation.md +102 -0
- package/skills/agent-patterns-catalog/references/multi-agent-workflow.md +124 -0
- package/skills/agent-patterns-catalog/references/rag-agent.md +128 -0
- package/skills/agent-patterns-catalog/references/react-agent.md +72 -0
- package/skills/agent-patterns-catalog/references/tool-use-agent.md +139 -0
- package/skills/agent-payment-x402/SKILL.md +178 -0
- package/skills/agentic-engineering/SKILL.md +63 -0
- package/skills/ai-first-engineering/SKILL.md +51 -0
- package/skills/ai-regression-testing/SKILL.md +385 -0
- package/skills/ai-regression-testing/agents/openai.yaml +4 -0
- package/skills/android-clean-architecture/SKILL.md +339 -0
- package/skills/api-contract/SKILL.md +21 -0
- package/skills/api-contract/agents/openai.yaml +4 -0
- package/skills/api-design/SKILL.md +523 -0
- package/skills/architecture-decision-records/SKILL.md +179 -0
- package/skills/article-writing/SKILL.md +106 -0
- package/skills/autonomous-agent-harness/SKILL.md +267 -0
- package/skills/autonomous-loops/SKILL.md +610 -0
- package/skills/backend-patterns/SKILL.md +598 -0
- package/skills/benchmark/SKILL.md +93 -0
- package/skills/blueprint/SKILL.md +105 -0
- package/skills/brainstorming/SKILL.md +74 -0
- package/skills/brand-voice/SKILL.md +97 -0
- package/skills/brand-voice/references/voice-profile-schema.md +55 -0
- package/skills/browser-qa/SKILL.md +87 -0
- package/skills/browser-smoke-testing/SKILL.md +36 -0
- package/skills/browser-smoke-testing/agents/openai.yaml +4 -0
- package/skills/bun-runtime/SKILL.md +84 -0
- package/skills/canary-watch/SKILL.md +99 -0
- package/skills/carrier-relationship-management/SKILL.md +212 -0
- package/skills/ck/SKILL.md +147 -0
- package/skills/ck/commands/forget.mjs +44 -0
- package/skills/ck/commands/info.mjs +24 -0
- package/skills/ck/commands/init.mjs +143 -0
- package/skills/ck/commands/list.mjs +40 -0
- package/skills/ck/commands/migrate.mjs +202 -0
- package/skills/ck/commands/resume.mjs +36 -0
- package/skills/ck/commands/save.mjs +210 -0
- package/skills/ck/commands/shared.mjs +387 -0
- package/skills/ck/hooks/session-start.mjs +224 -0
- package/skills/claude-api/SKILL.md +337 -0
- package/skills/claude-devfleet/SKILL.md +103 -0
- package/skills/click-path-audit/SKILL.md +244 -0
- package/skills/clickhouse-io/SKILL.md +439 -0
- package/skills/codebase-onboarding/SKILL.md +233 -0
- package/skills/coding-standards/SKILL.md +530 -0
- package/skills/compose-multiplatform-patterns/SKILL.md +299 -0
- package/skills/configure-ecc/SKILL.md +367 -0
- package/skills/configure-ecc/agents/openai.yaml +4 -0
- package/skills/connections-optimizer/SKILL.md +187 -0
- package/skills/content-engine/SKILL.md +153 -0
- package/skills/content-hash-cache-pattern/SKILL.md +161 -0
- package/skills/context-budget/SKILL.md +135 -0
- package/skills/context-engineering/SKILL.md +198 -0
- package/skills/context-lifecycle/SKILL.md +164 -0
- package/skills/context-recall/SKILL.md +154 -0
- package/skills/continuous-agent-loop/SKILL.md +45 -0
- package/skills/continuous-learning/SKILL.md +140 -0
- package/skills/continuous-learning/agents/openai.yaml +4 -0
- package/skills/continuous-learning-v2/SKILL.md +140 -0
- package/skills/continuous-learning-v2/agents/observer-loop.sh +210 -0
- package/skills/continuous-learning-v2/agents/observer.md +198 -0
- package/skills/continuous-learning-v2/agents/openai.yaml +4 -0
- package/skills/continuous-learning-v2/agents/session-guardian.sh +150 -0
- package/skills/continuous-learning-v2/agents/start-observer.sh +244 -0
- package/skills/continuous-learning-v2/config.json +8 -0
- package/skills/continuous-learning-v2/hooks/observe.sh +414 -0
- package/skills/continuous-learning-v2/scripts/detect-project.sh +228 -0
- package/skills/continuous-learning-v2/scripts/instinct-cli.py +1477 -0
- package/skills/continuous-learning-v2/scripts/test_parse_instinct.py +984 -0
- package/skills/cost-aware-llm-pipeline/SKILL.md +138 -0
- package/skills/cpp-coding-standards/SKILL.md +723 -0
- package/skills/cpp-testing/SKILL.md +324 -0
- package/skills/cross-model-review/SKILL.md +107 -0
- package/skills/crosspost/SKILL.md +117 -0
- package/skills/customer-billing-ops/SKILL.md +140 -0
- package/skills/customs-trade-compliance/SKILL.md +263 -0
- package/skills/data-scraper-agent/SKILL.md +764 -0
- package/skills/database-migrations/SKILL.md +429 -0
- package/skills/deep-research/SKILL.md +155 -0
- package/skills/deployment-patterns/SKILL.md +427 -0
- package/skills/design-system/SKILL.md +82 -0
- package/skills/discuss-phase/SKILL.md +73 -0
- package/skills/django-patterns/SKILL.md +734 -0
- package/skills/django-security/SKILL.md +593 -0
- package/skills/django-tdd/SKILL.md +729 -0
- package/skills/django-verification/SKILL.md +469 -0
- package/skills/dmux-workflows/SKILL.md +191 -0
- package/skills/doc-architecture/SKILL.md +93 -0
- package/skills/doc-architecture/agents/openai.yaml +4 -0
- package/skills/doc-architecture/references/artifact-mapping.md +16 -0
- package/skills/doc-architecture/references/audit-checklist.md +34 -0
- package/skills/doc-architecture/references/discovery-questionnaire.md +40 -0
- package/skills/doc-architecture/references/doc-evolution-guide.md +23 -0
- package/skills/doc-architecture/references/service-decomposition-guide.md +32 -0
- package/skills/doc-architecture/references/tech-stack-profiles.md +31 -0
- package/skills/doc-architecture/references/templates/agents-md.tmpl.md +7 -0
- package/skills/doc-architecture/references/templates/architecture.tmpl.md +8 -0
- package/skills/doc-architecture/references/templates/domain.tmpl.md +7 -0
- package/skills/doc-architecture/references/templates/frontend.tmpl.md +7 -0
- package/skills/doc-architecture/references/templates/plan.tmpl.md +6 -0
- package/skills/doc-architecture/references/templates/runbook.tmpl.md +6 -0
- package/skills/doc-architecture/references/templates/spec.tmpl.md +8 -0
- package/skills/docker-patterns/SKILL.md +364 -0
- package/skills/documentation-lookup/SKILL.md +90 -0
- package/skills/e2e-testing/SKILL.md +326 -0
- package/skills/e2e-testing/agents/openai.yaml +4 -0
- package/skills/energy-procurement/SKILL.md +228 -0
- package/skills/enterprise-agent-ops/SKILL.md +50 -0
- package/skills/error-experience-library/SKILL.md +81 -0
- package/skills/error-experience-library/agents/openai.yaml +59 -0
- package/skills/eval-harness/SKILL.md +187 -0
- package/skills/eval-harness/agents/openai.yaml +4 -0
- package/skills/evolution-core/SKILL.md +280 -0
- package/skills/evolution-network/SKILL.md +110 -0
- package/skills/exa-search/SKILL.md +103 -0
- package/skills/fal-ai-media/SKILL.md +284 -0
- package/skills/flutter-dart-code-review/SKILL.md +435 -0
- package/skills/foundation-models-on-device/SKILL.md +243 -0
- package/skills/frontend-engineering/SKILL.md +31 -0
- package/skills/frontend-engineering/agents/openai.yaml +4 -0
- package/skills/frontend-engineering/references/component-patterns.md +19 -0
- package/skills/frontend-engineering/references/quality-checklist.md +18 -0
- package/skills/frontend-engineering/references/react-next-baseline.md +24 -0
- package/skills/frontend-patterns/SKILL.md +642 -0
- package/skills/frontend-slides/SKILL.md +184 -0
- package/skills/frontend-slides/STYLE_PRESETS.md +330 -0
- package/skills/frontend-ui-ux-system/SKILL.md +31 -0
- package/skills/frontend-ui-ux-system/agents/openai.yaml +4 -0
- package/skills/frontend-ui-ux-system/references/delivery-checklist.md +16 -0
- package/skills/frontend-ui-ux-system/references/design-md-integration.md +123 -0
- package/skills/frontend-ui-ux-system/references/design-tokens.md +22 -0
- package/skills/frontend-ui-ux-system/references/interaction-accessibility.md +19 -0
- package/skills/frontend-ui-ux-system/references/product-style-map.md +20 -0
- package/skills/gan-style-harness/SKILL.md +278 -0
- package/skills/git-workflow/SKILL.md +715 -0
- package/skills/git-worktree-isolation/SKILL.md +137 -0
- package/skills/goframe-v2/SKILL.md +136 -0
- package/skills/goframe-v2/examples/README.MD +53 -0
- package/skills/goframe-v2/examples/balancer/http/README.MD +91 -0
- package/skills/goframe-v2/examples/balancer/http/README.ZH.MD +44 -0
- package/skills/goframe-v2/examples/balancer/http/client/client.go +48 -0
- package/skills/goframe-v2/examples/balancer/http/go.mod +53 -0
- package/skills/goframe-v2/examples/balancer/http/go.sum +155 -0
- package/skills/goframe-v2/examples/balancer/http/server/server.go +43 -0
- package/skills/goframe-v2/examples/balancer/polaris/README.ZH.MD +71 -0
- package/skills/goframe-v2/examples/balancer/polaris/README.md +102 -0
- package/skills/goframe-v2/examples/balancer/polaris/client/client.go +84 -0
- package/skills/goframe-v2/examples/balancer/polaris/go.mod +63 -0
- package/skills/goframe-v2/examples/balancer/polaris/go.sum +1036 -0
- package/skills/goframe-v2/examples/balancer/polaris/server/server.go +65 -0
- package/skills/goframe-v2/examples/config/apollo/README.MD +160 -0
- package/skills/goframe-v2/examples/config/apollo/README.ZH.MD +51 -0
- package/skills/goframe-v2/examples/config/apollo/boot/boot.go +53 -0
- package/skills/goframe-v2/examples/config/apollo/go.mod +50 -0
- package/skills/goframe-v2/examples/config/apollo/go.sum +658 -0
- package/skills/goframe-v2/examples/config/apollo/main.go +42 -0
- package/skills/goframe-v2/examples/config/consul/README.MD +130 -0
- package/skills/goframe-v2/examples/config/consul/README.ZH.MD +50 -0
- package/skills/goframe-v2/examples/config/consul/boot/boot.go +63 -0
- package/skills/goframe-v2/examples/config/consul/go.mod +51 -0
- package/skills/goframe-v2/examples/config/consul/go.sum +285 -0
- package/skills/goframe-v2/examples/config/consul/main.go +45 -0
- package/skills/goframe-v2/examples/config/kubecm/README.MD +142 -0
- package/skills/goframe-v2/examples/config/kubecm/README.ZH.MD +40 -0
- package/skills/goframe-v2/examples/config/kubecm/boot_in_pod/boot.go +63 -0
- package/skills/goframe-v2/examples/config/kubecm/boot_out_pod/boot.go +85 -0
- package/skills/goframe-v2/examples/config/kubecm/go.mod +72 -0
- package/skills/goframe-v2/examples/config/kubecm/go.sum +209 -0
- package/skills/goframe-v2/examples/config/kubecm/main.go +45 -0
- package/skills/goframe-v2/examples/config/nacos/README.MD +110 -0
- package/skills/goframe-v2/examples/config/nacos/README.ZH.MD +52 -0
- package/skills/goframe-v2/examples/config/nacos/boot/boot.go +74 -0
- package/skills/goframe-v2/examples/config/nacos/go.mod +90 -0
- package/skills/goframe-v2/examples/config/nacos/go.sum +760 -0
- package/skills/goframe-v2/examples/config/nacos/main.go +45 -0
- package/skills/goframe-v2/examples/config/polaris/README.MD +135 -0
- package/skills/goframe-v2/examples/config/polaris/README.ZH.MD +47 -0
- package/skills/goframe-v2/examples/config/polaris/boot/boot.go +67 -0
- package/skills/goframe-v2/examples/config/polaris/go.mod +63 -0
- package/skills/goframe-v2/examples/config/polaris/go.sum +1036 -0
- package/skills/goframe-v2/examples/config/polaris/main.go +45 -0
- package/skills/goframe-v2/examples/config/polaris/testdata/polaris.yaml +11 -0
- package/skills/goframe-v2/examples/database/encoded-pass/README.MD +107 -0
- package/skills/goframe-v2/examples/database/encoded-pass/README.ZH.MD +108 -0
- package/skills/goframe-v2/examples/database/encoded-pass/config.yaml +3 -0
- package/skills/goframe-v2/examples/database/encoded-pass/dbdriver/dbdriver.go +77 -0
- package/skills/goframe-v2/examples/database/encoded-pass/dbdriver/dbdriver_test.go +46 -0
- package/skills/goframe-v2/examples/database/encoded-pass/go.mod +39 -0
- package/skills/goframe-v2/examples/database/encoded-pass/go.sum +86 -0
- package/skills/goframe-v2/examples/database/encoded-pass/main.go +26 -0
- package/skills/goframe-v2/examples/grpc/balancer/README.MD +104 -0
- package/skills/goframe-v2/examples/grpc/balancer/README.ZH.MD +60 -0
- package/skills/goframe-v2/examples/grpc/balancer/client/client.go +71 -0
- package/skills/goframe-v2/examples/grpc/balancer/controller/helloworld.go +28 -0
- package/skills/goframe-v2/examples/grpc/balancer/go.mod +43 -0
- package/skills/goframe-v2/examples/grpc/balancer/go.sum +94 -0
- package/skills/goframe-v2/examples/grpc/balancer/protobuf/helloworld.pb.go +124 -0
- package/skills/goframe-v2/examples/grpc/balancer/protobuf/helloworld.proto +24 -0
- package/skills/goframe-v2/examples/grpc/balancer/protobuf/helloworld_grpc.pb.go +129 -0
- package/skills/goframe-v2/examples/grpc/balancer/server/config.yaml +8 -0
- package/skills/goframe-v2/examples/grpc/balancer/server/server.go +45 -0
- package/skills/goframe-v2/examples/grpc/basic/README.MD +100 -0
- package/skills/goframe-v2/examples/grpc/basic/README.ZH.MD +53 -0
- package/skills/goframe-v2/examples/grpc/basic/client/client.go +60 -0
- package/skills/goframe-v2/examples/grpc/basic/controller/helloworld.go +28 -0
- package/skills/goframe-v2/examples/grpc/basic/go.mod +42 -0
- package/skills/goframe-v2/examples/grpc/basic/go.sum +94 -0
- package/skills/goframe-v2/examples/grpc/basic/protobuf/helloworld.pb.go +217 -0
- package/skills/goframe-v2/examples/grpc/basic/protobuf/helloworld.proto +24 -0
- package/skills/goframe-v2/examples/grpc/basic/protobuf/helloworld_grpc.pb.go +107 -0
- package/skills/goframe-v2/examples/grpc/basic/server/config.yaml +8 -0
- package/skills/goframe-v2/examples/grpc/basic/server/server.go +47 -0
- package/skills/goframe-v2/examples/grpc/ctx/README.MD +100 -0
- package/skills/goframe-v2/examples/grpc/ctx/README.ZH.MD +51 -0
- package/skills/goframe-v2/examples/grpc/ctx/client/client.go +73 -0
- package/skills/goframe-v2/examples/grpc/ctx/controller/helloworld.go +66 -0
- package/skills/goframe-v2/examples/grpc/ctx/go.mod +42 -0
- package/skills/goframe-v2/examples/grpc/ctx/go.sum +94 -0
- package/skills/goframe-v2/examples/grpc/ctx/protobuf/helloworld.pb.go +217 -0
- package/skills/goframe-v2/examples/grpc/ctx/protobuf/helloworld.proto +24 -0
- package/skills/goframe-v2/examples/grpc/ctx/protobuf/helloworld_grpc.pb.go +107 -0
- package/skills/goframe-v2/examples/grpc/ctx/server/config.yaml +8 -0
- package/skills/goframe-v2/examples/grpc/ctx/server/server.go +47 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/README.MD +98 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/README.ZH.MD +54 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/client/client.go +76 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/go.mod +42 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/go.sum +94 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/helloworld/helloworld.pb.go +234 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/helloworld/helloworld.proto +25 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/helloworld/helloworld_grpc.pb.go +107 -0
- package/skills/goframe-v2/examples/grpc/rawgrpc/server/server.go +89 -0
- package/skills/goframe-v2/examples/grpc/resolver/README.MD +105 -0
- package/skills/goframe-v2/examples/grpc/resolver/README.ZH.MD +61 -0
- package/skills/goframe-v2/examples/grpc/resolver/client/client.go +63 -0
- package/skills/goframe-v2/examples/grpc/resolver/controller/helloworld.go +61 -0
- package/skills/goframe-v2/examples/grpc/resolver/go.mod +54 -0
- package/skills/goframe-v2/examples/grpc/resolver/go.sum +157 -0
- package/skills/goframe-v2/examples/grpc/resolver/protobuf/helloworld.pb.go +217 -0
- package/skills/goframe-v2/examples/grpc/resolver/protobuf/helloworld.proto +24 -0
- package/skills/goframe-v2/examples/grpc/resolver/protobuf/helloworld_grpc.pb.go +107 -0
- package/skills/goframe-v2/examples/grpc/resolver/server/config.yaml +8 -0
- package/skills/goframe-v2/examples/grpc/resolver/server/server.go +50 -0
- package/skills/goframe-v2/examples/httpserver/basic-auth/README.MD +104 -0
- package/skills/goframe-v2/examples/httpserver/basic-auth/README.ZH.MD +104 -0
- package/skills/goframe-v2/examples/httpserver/basic-auth/go.mod +35 -0
- package/skills/goframe-v2/examples/httpserver/basic-auth/go.sum +81 -0
- package/skills/goframe-v2/examples/httpserver/basic-auth/main.go +34 -0
- package/skills/goframe-v2/examples/httpserver/jwt/README.MD +86 -0
- package/skills/goframe-v2/examples/httpserver/jwt/README.ZH.MD +86 -0
- package/skills/goframe-v2/examples/httpserver/jwt/api/v1/auth.go +30 -0
- package/skills/goframe-v2/examples/httpserver/jwt/go.mod +38 -0
- package/skills/goframe-v2/examples/httpserver/jwt/go.sum +83 -0
- package/skills/goframe-v2/examples/httpserver/jwt/internal/controller/auth.go +64 -0
- package/skills/goframe-v2/examples/httpserver/jwt/internal/middleware/jwt.go +55 -0
- package/skills/goframe-v2/examples/httpserver/jwt/main.go +39 -0
- package/skills/goframe-v2/examples/httpserver/mcp-http/README.MD +134 -0
- package/skills/goframe-v2/examples/httpserver/mcp-http/README.ZH.MD +134 -0
- package/skills/goframe-v2/examples/httpserver/mcp-http/go.mod +45 -0
- package/skills/goframe-v2/examples/httpserver/mcp-http/go.sum +100 -0
- package/skills/goframe-v2/examples/httpserver/mcp-http/main.go +51 -0
- package/skills/goframe-v2/examples/httpserver/mcp-sse/README.MD +99 -0
- package/skills/goframe-v2/examples/httpserver/mcp-sse/README.ZH.MD +101 -0
- package/skills/goframe-v2/examples/httpserver/mcp-sse/go.mod +45 -0
- package/skills/goframe-v2/examples/httpserver/mcp-sse/go.sum +100 -0
- package/skills/goframe-v2/examples/httpserver/mcp-sse/main.go +55 -0
- package/skills/goframe-v2/examples/httpserver/proxy/README.MD +92 -0
- package/skills/goframe-v2/examples/httpserver/proxy/README.ZH.MD +47 -0
- package/skills/goframe-v2/examples/httpserver/proxy/go.mod +35 -0
- package/skills/goframe-v2/examples/httpserver/proxy/go.sum +81 -0
- package/skills/goframe-v2/examples/httpserver/proxy/main.go +90 -0
- package/skills/goframe-v2/examples/httpserver/rate-limit/README.MD +77 -0
- package/skills/goframe-v2/examples/httpserver/rate-limit/README.ZH.MD +43 -0
- package/skills/goframe-v2/examples/httpserver/rate-limit/go.mod +38 -0
- package/skills/goframe-v2/examples/httpserver/rate-limit/go.sum +83 -0
- package/skills/goframe-v2/examples/httpserver/rate-limit/main.go +80 -0
- package/skills/goframe-v2/examples/httpserver/response-json-array/README.MD +80 -0
- package/skills/goframe-v2/examples/httpserver/response-json-array/README.ZH.MD +42 -0
- package/skills/goframe-v2/examples/httpserver/response-json-array/go.mod +35 -0
- package/skills/goframe-v2/examples/httpserver/response-json-array/go.sum +81 -0
- package/skills/goframe-v2/examples/httpserver/response-json-array/main.go +76 -0
- package/skills/goframe-v2/examples/httpserver/sse/README.MD +87 -0
- package/skills/goframe-v2/examples/httpserver/sse/README.ZH.MD +85 -0
- package/skills/goframe-v2/examples/httpserver/sse/go.mod +35 -0
- package/skills/goframe-v2/examples/httpserver/sse/go.sum +81 -0
- package/skills/goframe-v2/examples/httpserver/sse/main.go +84 -0
- package/skills/goframe-v2/examples/httpserver/swagger-auth/README.MD +104 -0
- package/skills/goframe-v2/examples/httpserver/swagger-auth/README.ZH.MD +104 -0
- package/skills/goframe-v2/examples/httpserver/swagger-auth/go.mod +35 -0
- package/skills/goframe-v2/examples/httpserver/swagger-auth/go.sum +81 -0
- package/skills/goframe-v2/examples/httpserver/swagger-auth/main.go +73 -0
- package/skills/goframe-v2/examples/httpserver/upload-file/README.MD +99 -0
- package/skills/goframe-v2/examples/httpserver/upload-file/README.ZH.MD +47 -0
- package/skills/goframe-v2/examples/httpserver/upload-file/go.mod +35 -0
- package/skills/goframe-v2/examples/httpserver/upload-file/go.sum +81 -0
- package/skills/goframe-v2/examples/httpserver/upload-file/main.go +78 -0
- package/skills/goframe-v2/examples/httpserver/upload-file/static/index.html +151 -0
- package/skills/goframe-v2/examples/nosql/mongodb/README.MD +101 -0
- package/skills/goframe-v2/examples/nosql/mongodb/README.ZH.MD +91 -0
- package/skills/goframe-v2/examples/nosql/mongodb/config.yaml +3 -0
- package/skills/goframe-v2/examples/nosql/mongodb/go.mod +47 -0
- package/skills/goframe-v2/examples/nosql/mongodb/go.sum +125 -0
- package/skills/goframe-v2/examples/nosql/mongodb/main.go +119 -0
- package/skills/goframe-v2/examples/nosql/redis/README.MD +100 -0
- package/skills/goframe-v2/examples/nosql/redis/README.ZH.MD +89 -0
- package/skills/goframe-v2/examples/nosql/redis/config.yaml +3 -0
- package/skills/goframe-v2/examples/nosql/redis/go.mod +40 -0
- package/skills/goframe-v2/examples/nosql/redis/go.sum +91 -0
- package/skills/goframe-v2/examples/nosql/redis/main.go +68 -0
- package/skills/goframe-v2/examples/observability/metric/basic/README.MD +101 -0
- package/skills/goframe-v2/examples/observability/metric/basic/README.ZH.MD +145 -0
- package/skills/goframe-v2/examples/observability/metric/basic/go.mod +52 -0
- package/skills/goframe-v2/examples/observability/metric/basic/go.sum +114 -0
- package/skills/goframe-v2/examples/observability/metric/basic/main.go +167 -0
- package/skills/goframe-v2/examples/observability/metric/callback/README.MD +94 -0
- package/skills/goframe-v2/examples/observability/metric/callback/README.ZH.MD +110 -0
- package/skills/goframe-v2/examples/observability/metric/callback/go.mod +52 -0
- package/skills/goframe-v2/examples/observability/metric/callback/go.sum +114 -0
- package/skills/goframe-v2/examples/observability/metric/callback/main.go +99 -0
- package/skills/goframe-v2/examples/observability/metric/dynamic_attributes/README.MD +94 -0
- package/skills/goframe-v2/examples/observability/metric/dynamic_attributes/README.ZH.MD +127 -0
- package/skills/goframe-v2/examples/observability/metric/dynamic_attributes/go.mod +52 -0
- package/skills/goframe-v2/examples/observability/metric/dynamic_attributes/go.sum +114 -0
- package/skills/goframe-v2/examples/observability/metric/dynamic_attributes/main.go +107 -0
- package/skills/goframe-v2/examples/observability/metric/global_attributes/README.MD +94 -0
- package/skills/goframe-v2/examples/observability/metric/global_attributes/README.ZH.MD +115 -0
- package/skills/goframe-v2/examples/observability/metric/global_attributes/go.mod +52 -0
- package/skills/goframe-v2/examples/observability/metric/global_attributes/go.sum +114 -0
- package/skills/goframe-v2/examples/observability/metric/global_attributes/main.go +118 -0
- package/skills/goframe-v2/examples/observability/metric/http_client/README.MD +100 -0
- package/skills/goframe-v2/examples/observability/metric/http_client/README.ZH.MD +115 -0
- package/skills/goframe-v2/examples/observability/metric/http_client/go.mod +52 -0
- package/skills/goframe-v2/examples/observability/metric/http_client/go.sum +114 -0
- package/skills/goframe-v2/examples/observability/metric/http_client/main.go +67 -0
- package/skills/goframe-v2/examples/observability/metric/http_server/README.MD +120 -0
- package/skills/goframe-v2/examples/observability/metric/http_server/README.ZH.MD +147 -0
- package/skills/goframe-v2/examples/observability/metric/http_server/go.mod +52 -0
- package/skills/goframe-v2/examples/observability/metric/http_server/go.sum +114 -0
- package/skills/goframe-v2/examples/observability/metric/http_server/main.go +89 -0
- package/skills/goframe-v2/examples/observability/metric/meter_attributes/README.MD +95 -0
- package/skills/goframe-v2/examples/observability/metric/meter_attributes/README.ZH.MD +116 -0
- package/skills/goframe-v2/examples/observability/metric/meter_attributes/go.mod +52 -0
- package/skills/goframe-v2/examples/observability/metric/meter_attributes/go.sum +114 -0
- package/skills/goframe-v2/examples/observability/metric/meter_attributes/main.go +118 -0
- package/skills/goframe-v2/examples/observability/metric/prometheus/README.MD +99 -0
- package/skills/goframe-v2/examples/observability/metric/prometheus/README.ZH.MD +126 -0
- package/skills/goframe-v2/examples/observability/metric/prometheus/go.mod +46 -0
- package/skills/goframe-v2/examples/observability/metric/prometheus/go.sum +101 -0
- package/skills/goframe-v2/examples/observability/metric/prometheus/prometheus.go +84 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/README.MD +192 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/README.ZH.MD +175 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/client/client.go +114 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/go.mod +67 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/go.sum +187 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/protobuf/user/user.pb.go +469 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/protobuf/user/user.proto +35 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/protobuf/user/user_grpc.pb.go +188 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/server/config.yaml +31 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/server/server.go +138 -0
- package/skills/goframe-v2/examples/observability/trace/grpc-with-db/sql.sql +6 -0
- package/skills/goframe-v2/examples/observability/trace/http/README.MD +113 -0
- package/skills/goframe-v2/examples/observability/trace/http/README.ZH.MD +119 -0
- package/skills/goframe-v2/examples/observability/trace/http/client/client.go +71 -0
- package/skills/goframe-v2/examples/observability/trace/http/go.mod +47 -0
- package/skills/goframe-v2/examples/observability/trace/http/go.sum +106 -0
- package/skills/goframe-v2/examples/observability/trace/http/server/server.go +70 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/README.MD +192 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/README.ZH.MD +190 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/client/client.go +107 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/go.mod +49 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/go.sum +110 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/server/config.yaml +23 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/server/server.go +161 -0
- package/skills/goframe-v2/examples/observability/trace/http-with-db/sql.sql +6 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess/README.MD +145 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess/README.ZH.MD +182 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess/go.mod +47 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess/go.sum +106 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess/main.go +135 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess-grpc/README.MD +147 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess-grpc/README.ZH.MD +131 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess-grpc/go.mod +47 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess-grpc/go.sum +106 -0
- package/skills/goframe-v2/examples/observability/trace/inprocess-grpc/main.go +139 -0
- package/skills/goframe-v2/examples/observability/trace/otlp/README.MD +160 -0
- package/skills/goframe-v2/examples/observability/trace/otlp/README.ZH.MD +166 -0
- package/skills/goframe-v2/examples/observability/trace/otlp/go.mod +49 -0
- package/skills/goframe-v2/examples/observability/trace/otlp/go.sum +110 -0
- package/skills/goframe-v2/examples/observability/trace/otlp/grpc/main.go +67 -0
- package/skills/goframe-v2/examples/observability/trace/otlp/http/main.go +67 -0
- package/skills/goframe-v2/examples/observability/trace/processes/README.MD +151 -0
- package/skills/goframe-v2/examples/observability/trace/processes/README.ZH.MD +164 -0
- package/skills/goframe-v2/examples/observability/trace/processes/gcmd/main.go +43 -0
- package/skills/goframe-v2/examples/observability/trace/processes/gcmd/sub/sub.go +41 -0
- package/skills/goframe-v2/examples/observability/trace/processes/go.mod +35 -0
- package/skills/goframe-v2/examples/observability/trace/processes/go.sum +81 -0
- package/skills/goframe-v2/examples/observability/trace/processes/gproc/main.go +40 -0
- package/skills/goframe-v2/examples/observability/trace/processes/gproc/sub/sub.go +33 -0
- package/skills/goframe-v2/examples/observability/trace/provider/README.MD +189 -0
- package/skills/goframe-v2/examples/observability/trace/provider/README.ZH.MD +210 -0
- package/skills/goframe-v2/examples/observability/trace/provider/go.mod +47 -0
- package/skills/goframe-v2/examples/observability/trace/provider/go.sum +103 -0
- package/skills/goframe-v2/examples/observability/trace/provider/grpc/main.go +114 -0
- package/skills/goframe-v2/examples/observability/trace/provider/http/main.go +111 -0
- package/skills/goframe-v2/examples/observability/trace/provider/internal/consts.go +34 -0
- package/skills/goframe-v2/examples/observability/trace/provider/internal/provider.go +84 -0
- package/skills/goframe-v2/examples/observability/trace/provider/internal/request.go +36 -0
- package/skills/goframe-v2/examples/practices/injection/Makefile +1 -0
- package/skills/goframe-v2/examples/practices/injection/README.MD +148 -0
- package/skills/goframe-v2/examples/practices/injection/README.ZH.MD +149 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/Makefile +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/README.MD +7 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/api/hello/hello.go +15 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/api/hello/v1/hello.go +12 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/api/user/user.go +18 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/api/user/v1/user.go +39 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/hack/config.yaml +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/cmd/cmd.go +9 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/cmd/cmd_server.go +34 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/cmd/cmd_worker.go +22 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/consts/consts.go +1 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/hello/hello.go +5 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/hello/hello_new.go +15 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/hello/hello_v1_hello.go +13 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user.go +5 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user_new.go +21 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user_v1.go +5 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user_v1_create.go +21 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user_v1_delete.go +16 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user_v1_get_list.go +29 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user_v1_get_one.go +26 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/controller/user/user_v1_test.go +31 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/model/.gitkeep +0 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/internal/service/.gitkeep +0 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/main.go +17 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/config/config.yaml +14 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/base/configmap.yaml +16 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/base/deployment.yaml +31 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/base/kustomization.yaml +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/base/service.yaml +12 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/overlays/develop/configmap.yaml +16 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/overlays/develop/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/overlays/develop/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/overlays/product/configmap.yaml +16 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/overlays/product/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/deploy/kustomize/overlays/product/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/docker/Dockerfile +15 -0
- package/skills/goframe-v2/examples/practices/injection/app/gateway/manifest/docker/docker.sh +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/Makefile +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/README.MD +5 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/api/entity/user.pb.go +107 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/api/user/v1/user.pb.go +378 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/api/user/v1/user_grpc.pb.go +248 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/hack/config.yaml +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/cmd/cmd.go +9 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/cmd/cmd_server.go +34 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/cmd/cmd_worker.go +22 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/consts/consts.go +1 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/controller/user/user.go +78 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/controller/user/user_test.go +108 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/dao/user/user.go +170 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/dao/user/user_test.go +98 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/model/.gitkeep +0 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/model/entity/user.go +10 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/service/user/user.go +114 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/internal/service/user/user_test.go +90 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/main.go +17 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/config/config.yaml +26 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/base/configmap.yaml +30 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/base/deployment.yaml +31 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/base/kustomization.yaml +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/base/service.yaml +12 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/overlays/develop/configmap.yaml +30 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/overlays/develop/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/overlays/develop/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/overlays/product/configmap.yaml +30 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/overlays/product/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/deploy/kustomize/overlays/product/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/docker/Dockerfile +15 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/docker/docker.sh +8 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/protobuf/entity/user.proto +12 -0
- package/skills/goframe-v2/examples/practices/injection/app/user/manifest/protobuf/user/v1/user.proto +62 -0
- package/skills/goframe-v2/examples/practices/injection/go.mod +58 -0
- package/skills/goframe-v2/examples/practices/injection/go.sum +152 -0
- package/skills/goframe-v2/examples/practices/injection/hack/hack-cli.mk +18 -0
- package/skills/goframe-v2/examples/practices/injection/hack/hack.mk +64 -0
- package/skills/goframe-v2/examples/practices/injection/utility/.gitkeep +0 -0
- package/skills/goframe-v2/examples/practices/injection/utility/injection/injection.go +107 -0
- package/skills/goframe-v2/examples/practices/injection/utility/injection/injection_grpc_clients.go +29 -0
- package/skills/goframe-v2/examples/practices/injection/utility/injection/injection_mongo.go +43 -0
- package/skills/goframe-v2/examples/practices/injection/utility/injection/injection_redis.go +40 -0
- package/skills/goframe-v2/examples/practices/injection/utility/mongohelper/mongohelper.go +24 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/Makefile +6 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/README.MD +297 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/README.ZH.MD +296 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/api/v1/chat.go +27 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/go.mod +35 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/go.sum +81 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/hack/config.yaml +13 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/hack/hack-cli.mk +18 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/hack/hack.mk +77 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/internal/cmd/cmd.go +32 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/internal/consts/consts.go +1 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/internal/consts/consts_chat.go +15 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/internal/controller/chat.go +183 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/internal/model/chat.go +7 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/main.go +11 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/config/config.yaml +14 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/deploy/kustomize/base/deployment.yaml +21 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/deploy/kustomize/base/kustomization.yaml +8 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/deploy/kustomize/base/service.yaml +12 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/deploy/kustomize/overlays/develop/configmap.yaml +14 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/deploy/kustomize/overlays/develop/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/deploy/kustomize/overlays/develop/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/docker/Dockerfile +16 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/manifest/docker/docker.sh +8 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/layer.js +2 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/mobile/layer.js +2 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/mobile/need/layer.css +1 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/theme/default/icon-ext.png +0 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/theme/default/icon.png +0 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/theme/default/layer.css +1 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/theme/default/loading-0.gif +0 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/theme/default/loading-1.gif +0 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/plugin/layer-3.1.1/theme/default/loading-2.gif +0 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/resource/image/favicon.ico +0 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/public/resource/image/gf.ico +0 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/template/chat/include/chat.html +146 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/template/chat/include/main.html +65 -0
- package/skills/goframe-v2/examples/practices/mvc-demo-chat/resource/template/chat/index.html +18 -0
- package/skills/goframe-v2/examples/practices/quick-demo/Makefile +6 -0
- package/skills/goframe-v2/examples/practices/quick-demo/README.MD +282 -0
- package/skills/goframe-v2/examples/practices/quick-demo/README.ZH.MD +285 -0
- package/skills/goframe-v2/examples/practices/quick-demo/api/user/user.go +19 -0
- package/skills/goframe-v2/examples/practices/quick-demo/api/user/v1/user.go +61 -0
- package/skills/goframe-v2/examples/practices/quick-demo/go.mod +39 -0
- package/skills/goframe-v2/examples/practices/quick-demo/go.sum +86 -0
- package/skills/goframe-v2/examples/practices/quick-demo/hack/config.yaml +13 -0
- package/skills/goframe-v2/examples/practices/quick-demo/hack/hack-cli.mk +18 -0
- package/skills/goframe-v2/examples/practices/quick-demo/hack/hack.mk +77 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/cmd/cmd.go +33 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/consts/consts.go +1 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/controller/user/user.go +5 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/controller/user/user_new.go +15 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/controller/user/user_v1_create.go +25 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/controller/user/user_v1_delete.go +14 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/controller/user/user_v1_get_list.go +19 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/controller/user/user_v1_get_one.go +15 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/controller/user/user_v1_update.go +19 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/dao/internal/user.go +79 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/dao/user.go +27 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/model/.gitkeep +0 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/model/do/user.go +18 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/model/entity/user.go +13 -0
- package/skills/goframe-v2/examples/practices/quick-demo/internal/service/.gitkeep +0 -0
- package/skills/goframe-v2/examples/practices/quick-demo/main.go +13 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/config/config.yaml +15 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/deploy/kustomize/base/deployment.yaml +21 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/deploy/kustomize/base/kustomization.yaml +8 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/deploy/kustomize/base/service.yaml +12 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/deploy/kustomize/overlays/develop/configmap.yaml +14 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/deploy/kustomize/overlays/develop/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/deploy/kustomize/overlays/develop/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/docker/Dockerfile +16 -0
- package/skills/goframe-v2/examples/practices/quick-demo/manifest/docker/docker.sh +8 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/Makefile +81 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/README.MD +360 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/README.ZH.MD +363 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/api/pbentity/user.pb.go +219 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/api/user/v1/user.pb.go +619 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/api/user/v1/user_grpc.pb.go +223 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/go.mod +44 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/go.sum +95 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/hack/config.yaml +13 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/cmd/cmd.go +35 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/consts/consts.go +1 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/controller/user/user.go +63 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/dao/internal/user.go +83 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/dao/user.go +27 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/model/do/user.go +21 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/model/entity/user.go +19 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/internal/service/user/user.go +36 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/main.go +13 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/config/config.yaml +27 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/deploy/kustomize/base/deployment.yaml +21 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/deploy/kustomize/base/kustomization.yaml +8 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/deploy/kustomize/base/service.yaml +12 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/deploy/kustomize/overlays/develop/configmap.yaml +14 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/deploy/kustomize/overlays/develop/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/deploy/kustomize/overlays/develop/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/docker/Dockerfile +15 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/docker/docker.sh +8 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/protobuf/pbentity/user.proto +21 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/protobuf/user/v1/user.proto +45 -0
- package/skills/goframe-v2/examples/practices/user-grpc-service/manifest/sql/create.sql +11 -0
- package/skills/goframe-v2/examples/practices/user-http-service/Makefile +6 -0
- package/skills/goframe-v2/examples/practices/user-http-service/README.MD +476 -0
- package/skills/goframe-v2/examples/practices/user-http-service/README.ZH.MD +475 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/user.go +21 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/v1/user_check_nick_name.go +10 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/v1/user_check_passport.go +10 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/v1/user_is_signed_in.go +11 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/v1/user_profile.go +15 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/v1/user_sign_in.go +11 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/v1/user_sign_out.go +9 -0
- package/skills/goframe-v2/examples/practices/user-http-service/api/user/v1/user_sign_up.go +13 -0
- package/skills/goframe-v2/examples/practices/user-http-service/go.mod +39 -0
- package/skills/goframe-v2/examples/practices/user-http-service/go.sum +86 -0
- package/skills/goframe-v2/examples/practices/user-http-service/hack/config.yaml +9 -0
- package/skills/goframe-v2/examples/practices/user-http-service/hack/hack-cli.mk +18 -0
- package/skills/goframe-v2/examples/practices/user-http-service/hack/hack.mk +75 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/cmd/cmd.go +82 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/consts/consts.go +3 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user.go +6 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_new.go +21 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_v1_check_nick_name.go +21 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_v1_check_passport.go +21 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_v1_is_signed_in.go +15 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_v1_profile.go +15 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_v1_sign_in.go +17 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_v1_sign_out.go +13 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/controller/user/user_v1_sign_up.go +18 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/dao/internal/user.go +83 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/dao/user.go +27 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/model/do/user.go +21 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/model/entity/user.go +19 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/service/bizctx/bizctx.go +57 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/service/middleware/middleware.go +59 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/service/session/session.go +53 -0
- package/skills/goframe-v2/examples/practices/user-http-service/internal/service/user/user.go +140 -0
- package/skills/goframe-v2/examples/practices/user-http-service/main.go +13 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/config/config.yaml +24 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/deploy/kustomize/base/deployment.yaml +21 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/deploy/kustomize/base/kustomization.yaml +8 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/deploy/kustomize/base/service.yaml +12 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/deploy/kustomize/overlays/develop/configmap.yaml +14 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/deploy/kustomize/overlays/develop/deployment.yaml +10 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/deploy/kustomize/overlays/develop/kustomization.yaml +14 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/docker/Dockerfile +15 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/docker/docker.sh +8 -0
- package/skills/goframe-v2/examples/practices/user-http-service/manifest/sql/create.sql +10 -0
- package/skills/goframe-v2/examples/registry/consul/README.MD +110 -0
- package/skills/goframe-v2/examples/registry/consul/README.ZH.MD +92 -0
- package/skills/goframe-v2/examples/registry/consul/docker-compose/client.json +7 -0
- package/skills/goframe-v2/examples/registry/consul/docker-compose/docker-compose.yml +31 -0
- package/skills/goframe-v2/examples/registry/consul/docker-compose/server.json +12 -0
- package/skills/goframe-v2/examples/registry/consul/go.mod +56 -0
- package/skills/goframe-v2/examples/registry/consul/go.sum +297 -0
- package/skills/goframe-v2/examples/registry/consul/grpc/client/client.go +38 -0
- package/skills/goframe-v2/examples/registry/consul/grpc/controller/helloworld.go +28 -0
- package/skills/goframe-v2/examples/registry/consul/grpc/protobuf/helloworld.pb.go +217 -0
- package/skills/goframe-v2/examples/registry/consul/grpc/protobuf/helloworld.proto +24 -0
- package/skills/goframe-v2/examples/registry/consul/grpc/protobuf/helloworld_grpc.pb.go +107 -0
- package/skills/goframe-v2/examples/registry/consul/grpc/server/config.yaml +8 -0
- package/skills/goframe-v2/examples/registry/consul/grpc/server/server.go +30 -0
- package/skills/goframe-v2/examples/registry/consul/http/client/client.go +33 -0
- package/skills/goframe-v2/examples/registry/consul/http/server/server.go +32 -0
- package/skills/goframe-v2/examples/registry/etcd/README.MD +127 -0
- package/skills/goframe-v2/examples/registry/etcd/README.ZH.MD +105 -0
- package/skills/goframe-v2/examples/registry/etcd/go.mod +54 -0
- package/skills/goframe-v2/examples/registry/etcd/go.sum +157 -0
- package/skills/goframe-v2/examples/registry/etcd/grpc/client/client.go +44 -0
- package/skills/goframe-v2/examples/registry/etcd/grpc/controller/helloworld.go +28 -0
- package/skills/goframe-v2/examples/registry/etcd/grpc/protobuf/helloworld.pb.go +217 -0
- package/skills/goframe-v2/examples/registry/etcd/grpc/protobuf/helloworld.proto +24 -0
- package/skills/goframe-v2/examples/registry/etcd/grpc/protobuf/helloworld_grpc.pb.go +107 -0
- package/skills/goframe-v2/examples/registry/etcd/grpc/server/config.yaml +8 -0
- package/skills/goframe-v2/examples/registry/etcd/grpc/server/server.go +23 -0
- package/skills/goframe-v2/examples/registry/etcd/http/client/client.go +53 -0
- package/skills/goframe-v2/examples/registry/etcd/http/server/server.go +56 -0
- package/skills/goframe-v2/examples/registry/file/README.MD +97 -0
- package/skills/goframe-v2/examples/registry/file/README.ZH.MD +91 -0
- package/skills/goframe-v2/examples/registry/file/client/client.go +66 -0
- package/skills/goframe-v2/examples/registry/file/go.mod +38 -0
- package/skills/goframe-v2/examples/registry/file/go.sum +84 -0
- package/skills/goframe-v2/examples/registry/file/server/server.go +56 -0
- package/skills/goframe-v2/examples/registry/nacos/README.MD +118 -0
- package/skills/goframe-v2/examples/registry/nacos/README.ZH.MD +110 -0
- package/skills/goframe-v2/examples/registry/nacos/docker-compose/docker-compose.yml +24 -0
- package/skills/goframe-v2/examples/registry/nacos/docker-compose/env/nacos.env +2 -0
- package/skills/goframe-v2/examples/registry/nacos/go.mod +97 -0
- package/skills/goframe-v2/examples/registry/nacos/go.sum +737 -0
- package/skills/goframe-v2/examples/registry/nacos/grpc/client/client.go +33 -0
- package/skills/goframe-v2/examples/registry/nacos/grpc/controller/helloworld.go +28 -0
- package/skills/goframe-v2/examples/registry/nacos/grpc/protobuf/helloworld.pb.go +217 -0
- package/skills/goframe-v2/examples/registry/nacos/grpc/protobuf/helloworld.proto +24 -0
- package/skills/goframe-v2/examples/registry/nacos/grpc/protobuf/helloworld_grpc.pb.go +107 -0
- package/skills/goframe-v2/examples/registry/nacos/grpc/server/config.yaml +8 -0
- package/skills/goframe-v2/examples/registry/nacos/grpc/server/server.go +24 -0
- package/skills/goframe-v2/examples/registry/nacos/http/client/client.go +53 -0
- package/skills/goframe-v2/examples/registry/nacos/http/server/server.go +56 -0
- package/skills/goframe-v2/examples/registry/polaris/README.MD +98 -0
- package/skills/goframe-v2/examples/registry/polaris/README.ZH.MD +119 -0
- package/skills/goframe-v2/examples/registry/polaris/client/client.go +92 -0
- package/skills/goframe-v2/examples/registry/polaris/go.mod +63 -0
- package/skills/goframe-v2/examples/registry/polaris/go.sum +1036 -0
- package/skills/goframe-v2/examples/registry/polaris/server/server.go +79 -0
- package/skills/goframe-v2/references/README.MD +402 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Cookie.md +82 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/344/273/243/347/220/206Proxy/350/256/276/347/275/256.md +40 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/345/237/272/346/234/254/344/275/277/347/224/250.md +149 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/345/270/270/350/247/201/351/227/256/351/242/230.md +37 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/346/213/246/346/210/252/345/231/250/344/270/255/351/227/264/344/273/266.md +171 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/346/226/207/344/273/266/344/270/212/344/274/240.md +187 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/347/233/221/346/216/247/346/214/207/346/240/207.md +24 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/350/207/252/345/256/232/344/271/211ContentType.md +82 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/350/207/252/345/256/232/344/271/211Cookie.md +98 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/350/207/252/345/256/232/344/271/211Header.md +103 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/350/207/252/345/256/232/344/271/211Transport.md +77 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient-/350/257/267/346/261/202/344/277/241/346/201/257/346/211/223/345/215/260.md +68 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/HTTPClient/HTTPClient.md +74 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Session/Session-File.md +54 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Session/Session-Memory.md +44 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Session/Session-Redis-HashTable.md +45 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Session/Session-Redis-KeyValue.md +49 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Session/Session-RegenerateId.md +156 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Session/Session-Storage/346/216/245/345/217/243/345/274/200/345/217/221.md +63 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221/Session/Session.md +42 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/210/206/351/241/265/347/256/241/347/220/206//345/210/206/351/241/265/347/256/241/347/220/206-Ajax/345/210/206/351/241/265.md +63 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/210/206/351/241/265/347/256/241/347/220/206//345/210/206/351/241/265/347/256/241/347/220/206-URL/346/250/241/346/235/277.md +45 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/210/206/351/241/265/347/256/241/347/220/206//345/210/206/351/241/265/347/256/241/347/220/206-/345/212/250/346/200/201/345/210/206/351/241/265.md +46 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/210/206/351/241/265/347/256/241/347/220/206//345/210/206/351/241/265/347/256/241/347/220/206-/350/207/252/345/256/232/344/271/211/345/210/206/351/241/265.md +112 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/210/206/351/241/265/347/256/241/347/220/206//345/210/206/351/241/265/347/256/241/347/220/206-/351/235/231/346/200/201/345/210/206/351/241/265.md +91 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/210/206/351/241/265/347/256/241/347/220/206//345/210/206/351/241/265/347/256/241/347/220/206.md +79 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/274/200/345/247/213/344/275/277/347/224/250.md +211 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//345/274/202/345/270/270/345/244/204/347/220/206.md +266 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/216/245/345/217/243/346/226/207/346/241/243//346/216/245/345/217/243/346/226/207/346/241/243-OpenAPIv3.md +304 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/216/245/345/217/243/346/226/207/346/241/243//346/216/245/345/217/243/346/226/207/346/241/243-/346/211/251/345/261/225Response.md +454 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/216/245/345/217/243/346/226/207/346/241/243//346/216/245/345/217/243/346/226/207/346/241/243-/350/207/252/345/256/232/344/271/211UI.md +167 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236-Exit/346/216/247/345/210/266.md +72 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236-JSONXML.md +134 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236-Redirect.md +60 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236-Stream/350/277/224/345/233/236.md +93 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236-/346/226/207/344/273/266/344/270/213/350/275/275.md +58 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236-/346/250/241/346/235/277/350/247/243/346/236/220.md +117 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236-/347/274/223/345/206/262/346/216/247/345/210/266.md +53 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/225/260/346/215/256/350/277/224/345/233/236//346/225/260/346/215/256/350/277/224/345/233/236.md +47 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/234/215/345/212/241/351/205/215/347/275/256//346/234/215/345/212/241/351/205/215/347/275/256-/351/205/215/347/275/256/346/226/207/344/273/266.md +121 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/234/215/345/212/241/351/205/215/347/275/256//346/234/215/345/212/241/351/205/215/347/275/256-/351/205/215/347/275/256/346/226/207/344/273/266/346/250/241/346/235/277.md +87 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//346/234/215/345/212/241/351/205/215/347/275/256//346/234/215/345/212/241/351/205/215/347/275/256-/351/205/215/347/275/256/346/226/271/346/263/225.md +50 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245-Context.md +103 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245-JSONXML.md +131 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245-/345/217/202/346/225/260/345/244/204/347/220/206.md +158 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245-/345/257/271/350/261/241/345/244/204/347/220/206.md +117 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245-/350/207/252/345/256/232/344/271/211/345/217/202/346/225/260.md +64 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245-/350/257/267/346/261/202/346/240/241/351/252/214.md +152 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245-/351/273/230/350/256/244/345/200/274/347/273/221/345/256/232.md +97 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/257/267/346/261/202/350/276/223/345/205/245//350/257/267/346/261/202/350/276/223/345/205/245.md +199 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/344/270/255/351/227/264/344/273/266/346/213/246/346/210/252/345/231/250//344/270/255/351/227/264/344/273/266/346/213/246/346/210/252/345/231/250-/344/275/277/347/224/250/347/244/272/344/276/213.md +280 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/344/270/255/351/227/264/344/273/266/346/213/246/346/210/252/345/231/250//344/270/255/351/227/264/344/273/266/346/213/246/346/210/252/345/231/250-/345/237/272/346/234/254/344/273/213/347/273/215.md +192 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/344/270/255/351/227/264/344/273/266/346/213/246/346/210/252/345/231/250//344/270/255/351/227/264/344/273/266/346/213/246/346/210/252/345/231/250-/345/270/270/350/247/201/351/227/256/351/242/230.md +19 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/346/263/250/345/206/214-/345/207/275/346/225/260/346/263/250/345/206/214.md +98 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/346/263/250/345/206/214-/345/210/206/347/273/204/350/267/257/347/224/261.md +282 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/346/263/250/345/206/214-/345/257/271/350/261/241/346/263/250/345/206/214.md +431 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/346/263/250/345/206/214-/350/247/204/350/214/203/350/267/257/347/224/261//350/247/204/350/214/203/350/267/257/347/224/261-/345/237/272/346/234/254/347/244/272/344/276/213.md +99 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/346/263/250/345/206/214-/350/247/204/350/214/203/350/267/257/347/224/261//350/247/204/350/214/203/350/267/257/347/224/261-/345/246/202/344/275/225/344/275/277/347/224/250.md +87 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/346/263/250/345/206/214-/350/247/204/350/214/203/350/267/257/347/224/261//350/247/204/350/214/203/350/267/257/347/224/261-/345/270/270/350/247/201/351/227/256/351/242/230.md +33 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/346/263/250/345/206/214-/350/247/204/350/214/203/350/267/257/347/224/261//350/267/257/347/224/261/346/263/250/345/206/214-/350/247/204/350/214/203/350/267/257/347/224/261.md +17 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/346/263/250/345/206/214.md +13 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//350/267/257/347/224/261/347/256/241/347/220/206//350/267/257/347/224/261/347/256/241/347/220/206-/350/267/257/347/224/261/350/247/204/345/210/231.md +335 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/CORS/350/267/250/345/237/237/345/244/204/347/220/206.md +200 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/CSRF/351/230/262/345/276/241/350/256/276/347/275/256.md +113 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/HOOK/344/272/213/344/273/266/345/233/236/350/260/203.md +343 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/HTTPS & TLS.md" +263 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/HTTPServer-/347/233/221/346/216/247/346/214/207/346/240/207.md +25 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/PProf/346/234/215/345/212/241/346/200/247/350/203/275/345/210/206/346/236/220.md +167 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/SameSite /350/256/276/347/275/256.md" +31 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247/WebSocket/346/234/215/345/212/241.md +308 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247//345/271/263/346/273/221/351/207/215/345/220/257/347/211/271/346/200/247.md +203 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247//346/234/215/345/212/241/346/227/245/345/277/227/347/256/241/347/220/206.md +108 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247//350/207/252/345/256/232/344/271/211/347/212/266/346/200/201/347/240/201/345/244/204/347/220/206.md +91 -0
- package/skills/goframe-v2/references/WEB/346/234/215/345/212/241/345/274/200/345/217/221//351/253/230/347/272/247/347/211/271/346/200/247//351/235/231/346/200/201/346/226/207/344/273/266/346/234/215/345/212/241.md +166 -0
- package/skills/goframe-v2/references//345/270/270/350/247/201/351/227/256/351/242/230-FAQ.md +215 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//344/272/244/345/217/211/347/274/226/350/257/221-build.md +89 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//344/273/243/347/240/201/347/224/237/346/210/220-gen//344/273/243/347/240/201/347/224/237/346/210/220-gen.md +31 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//344/273/243/347/240/201/347/224/237/346/210/220-gen//345/215/217/350/256/256/347/274/226/350/257/221-gen pb.md" +39 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//344/273/243/347/240/201/347/224/237/346/210/220-gen//346/216/245/345/217/243/350/247/204/350/214/203-gen ctrl.md" +134 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//344/273/243/347/240/201/347/224/237/346/210/220-gen//346/225/260/346/215/256/350/241/250PB-gen pbentity.md" +134 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//344/273/243/347/240/201/347/224/237/346/210/220-gen//346/225/260/346/215/256/350/247/204/350/214/203-gen dao.md" +497 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//344/273/243/347/240/201/347/224/237/346/210/220-gen//346/236/232/344/270/276/347/273/264/346/212/244-gen enums.md" +85 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//345/205/274/345/256/271/344/277/256/345/244/215-fix.md +39 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//345/267/245/345/205/267/345/256/211/350/243/205-install.md +80 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//345/274/200/345/217/221/345/267/245/345/205/267.md +86 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//346/241/206/346/236/266/345/215/207/347/272/247-up.md +67 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//347/211/210/346/234/254/346/237/245/347/234/213-version.md +53 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//350/207/252/345/212/250/347/274/226/350/257/221-run.md +86 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//350/265/204/346/272/220/346/211/223/345/214/205-pack.md +42 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//351/225/234/345/203/217/347/274/226/350/257/221-docker.md +113 -0
- package/skills/goframe-v2/references//345/274/200/345/217/221/345/267/245/345/205/267//351/241/271/347/233/256/345/210/233/345/273/272-init.md +218 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//345/267/245/347/250/213/347/256/241/347/220/206.md +53 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221.md +284 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//346/213/246/346/210/252/345/231/250/347/273/204/344/273/266.md +45 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//346/234/215/345/212/241/346/263/250/345/206/214/345/217/221/347/216/260.md +211 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//346/234/215/345/212/241/347/253/257/351/205/215/347/275/256.md +67 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//346/234/215/345/212/241/350/264/237/350/275/275/345/235/207/350/241/241.md +234 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//346/234/215/345/212/241/351/205/215/347/275/256/347/256/241/347/220/206.md +166 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//347/216/257/345/242/203/345/207/206/345/244/207.md +22 -0
- package/skills/goframe-v2/references//345/276/256/346/234/215/345/212/241/345/274/200/345/217/221//350/204/232/346/211/213/346/236/266/346/250/241/345/235/227.md +367 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213/Hello World.md" +74 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213/What's Next.md" +12 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213//344/270/213/350/275/275/344/270/216/344/275/277/347/224/250.md +60 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213//344/270/255/351/227/264/344/273/266/345/210/235/350/257/225/347/224/250.md +105 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213//344/275/277/347/224/250/350/247/204/350/214/203/350/267/257/347/224/261.md +112 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213//347/224/237/346/210/220/346/216/245/345/217/243/346/226/207/346/241/243.md +150 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213//347/273/237/344/270/200/350/277/224/345/233/236/347/273/223/346/236/204.md +156 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213//350/216/267/345/217/226/350/257/267/346/261/202/345/217/202/346/225/260.md +52 -0
- package/skills/goframe-v2/references//345/277/253/351/200/237/345/274/200/345/247/213//350/257/267/346/261/202/346/225/260/346/215/256/347/273/223/346/236/204.md +78 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/347/233/221/346/216/247/345/221/212/350/255/246//347/233/221/346/216/247/345/221/212/350/255/246-/345/206/205/347/275/256/346/214/207/346/240/207.md +84 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/347/233/221/346/216/247/345/221/212/350/255/246//347/233/221/346/216/247/345/221/212/350/255/246-/345/220/214/346/255/245/346/214/207/346/240/207.md +108 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/347/233/221/346/216/247/345/221/212/350/255/246//347/233/221/346/216/247/345/221/212/350/255/246-/345/237/272/346/234/254/344/273/213/347/273/215.md +107 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/347/233/221/346/216/247/345/221/212/350/255/246//347/233/221/346/216/247/345/221/212/350/255/246-/345/237/272/346/234/254/344/275/277/347/224/250.md +301 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/347/233/221/346/216/247/345/221/212/350/255/246//347/233/221/346/216/247/345/221/212/350/255/246-/345/274/202/346/255/245/346/214/207/346/240/207.md +117 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/347/233/221/346/216/247/345/221/212/350/255/246//347/233/221/346/216/247/345/221/212/350/255/246-/346/214/207/346/240/207/345/261/236/346/200/247.md +310 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/351/223/276/350/267/257/350/267/237/350/270/252//351/223/276/350/267/257/350/267/237/350/270/252-GRPC/347/244/272/344/276/213.md +293 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/351/223/276/350/267/257/350/267/237/350/270/252//351/223/276/350/267/257/350/267/237/350/270/252-HTTP/347/244/272/344/276/213//351/223/276/350/267/257/350/267/237/350/270/252-HTTP/347/244/272/344/276/213-Baggage.md +161 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/351/223/276/350/267/257/350/267/237/350/270/252//351/223/276/350/267/257/350/267/237/350/270/252-HTTP/347/244/272/344/276/213//351/223/276/350/267/257/350/267/237/350/270/252-HTTP/347/244/272/344/276/213-/346/225/260/346/215/256/346/223/215/344/275/234.md +279 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/351/223/276/350/267/257/350/267/237/350/270/252//351/223/276/350/267/257/350/267/237/350/270/252-/345/207/206/345/244/207/345/267/245/344/275/234.md +48 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/351/223/276/350/267/257/350/267/237/350/270/252//351/223/276/350/267/257/350/267/237/350/270/252-/345/237/272/346/234/254/347/244/272/344/276/213.md +121 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/351/223/276/350/267/257/350/267/237/350/270/252//351/223/276/350/267/257/350/267/237/350/270/252-/346/234/200/344/275/263/345/256/236/350/267/265//351/223/276/350/267/257/350/267/237/350/270/252-TraceID/346/263/250/345/205/245/345/222/214/350/216/267/345/217/226.md +325 -0
- package/skills/goframe-v2/references//346/234/215/345/212/241/345/217/257/350/247/202/346/265/213/346/200/247//346/234/215/345/212/241/351/223/276/350/267/257/350/267/237/350/270/252//351/223/276/350/267/257/350/267/237/350/270/252-/350/203/214/346/231/257/347/237/245/350/257/206.md +147 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266/I18N/345/233/275/351/231/205/345/214/226/I18N/345/233/275/351/231/205/345/214/226-/344/275/277/347/224/250/344/273/213/347/273/215.md +338 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266/I18N/345/233/275/351/231/205/345/214/226/I18N/345/233/275/351/231/205/345/214/226-/351/205/215/347/275/256/347/256/241/347/220/206.md +69 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266/I18N/345/233/275/351/231/205/345/214/226/I18N/345/233/275/351/231/205/345/214/226.md +15 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206-Parser/350/247/243/346/236/220.md +72 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206-/345/221/275/344/273/244/350/241/214/345/257/271/350/261/241.md +193 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206-/345/237/272/346/234/254/346/246/202/345/277/265.md +59 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206-/345/237/272/347/241/200/346/226/271/346/263/225.md +116 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206-/347/273/210/347/253/257/344/272/244/344/272/222.md +65 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206-/347/273/223/346/236/204/345/214/226/345/217/202/346/225/260.md +229 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206-/351/223/276/350/267/257/350/267/237/350/270/252.md +82 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/221/275/344/273/244/347/256/241/347/220/206//345/221/275/344/273/244/347/256/241/347/220/206.md +41 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//345/257/271/350/261/241/347/256/241/347/220/206.md +190 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/270/212/344/270/213/346/226/207/345/217/230/351/207/217.md +61 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/272/213/345/212/241/345/244/204/347/220/206/ORM/344/272/213/345/212/241/345/244/204/347/220/206-/344/272/213/345/212/241/344/274/240/346/222/255.md +764 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/272/213/345/212/241/345/244/204/347/220/206/ORM/344/272/213/345/212/241/345/244/204/347/220/206-/345/217/252/350/257/273/346/250/241/345/274/217.md +310 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/272/213/345/212/241/345/244/204/347/220/206/ORM/344/272/213/345/212/241/345/244/204/347/220/206-/345/265/214/345/245/227/344/272/213/345/212/241.md +306 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/272/213/345/212/241/345/244/204/347/220/206/ORM/344/272/213/345/212/241/345/244/204/347/220/206-/345/270/270/350/247/204/346/223/215/344/275/234.md +61 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/272/213/345/212/241/345/244/204/347/220/206/ORM/344/272/213/345/212/241/345/244/204/347/220/206-/351/227/255/345/214/205/346/223/215/344/275/234.md +51 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/272/213/345/212/241/345/244/204/347/220/206/ORM/344/272/213/345/212/241/345/244/204/347/220/206-/351/232/224/347/246/273/347/272/247/345/210/253.md +312 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/275/277/347/224/250/351/205/215/347/275/256/ORM/344/275/277/347/224/250/351/205/215/347/275/256-/351/205/215/347/275/256/346/226/207/344/273/266.md +159 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/344/275/277/347/224/250/351/205/215/347/275/256/ORM/344/275/277/347/224/250/351/205/215/347/275/256-/351/205/215/347/275/256/346/226/271/346/263/225.md +166 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/345/210/206/345/272/223/345/210/206/350/241/250/ORM/345/210/206/345/272/223/345/210/206/350/241/250-/345/210/206/345/272/223/347/211/271/346/200/247.md +328 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/345/210/206/345/272/223/345/210/206/350/241/250/ORM/345/210/206/345/272/223/345/210/206/350/241/250-/345/210/206/350/241/250/347/211/271/346/200/247.md +285 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/345/270/270/350/247/201/351/227/256/351/242/230.md +73 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/216/245/345/217/243/345/274/200/345/217/221/ORM/346/216/245/345/217/243/345/274/200/345/217/221-/345/233/236/350/260/203/345/244/204/347/220/206.md +85 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/216/245/345/217/243/345/274/200/345/217/221/ORM/346/216/245/345/217/243/345/274/200/345/217/221-/351/251/261/345/212/250/345/274/200/345/217/221.md +46 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/216/245/345/217/243/345/274/200/345/217/221/ORM/346/216/245/345/217/243/345/274/200/345/217/221.md +34 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/226/271/346/263/225/346/223/215/344/275/234-/345/216/237/347/224/237.md +123 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/227/266/345/214/272/345/244/204/347/220/206.md +88 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/234/200/344/275/263/345/256/236/350/267/265//345/210/251/347/224/250/346/214/207/351/222/210/345/261/236/346/200/247/345/222/214do/345/257/271/350/261/241/345/256/236/347/216/260/347/201/265/346/264/273/347/232/204/344/277/256/346/224/271/346/216/245/345/217/243.md +84 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/234/200/344/275/263/345/256/236/350/267/265//345/244/215/346/235/202/347/261/273/345/236/213/345/260/275/351/207/217/344/275/277/347/224/250json/345/255/230/345/202/250/357/274/214/344/276/277/344/272/216Scan/345/210/260/345/257/271/350/261/241/346/227/266/350/207/252/345/212/250/345/214/226/350/275/254/346/215/242/357/274/214/351/201/277/345/205/215/350/207/252/345/256/232/344/271/211/350/247/243/346/236/220.md +71 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/346/234/200/344/275/263/345/256/236/350/267/265//346/237/245/350/257/242/346/227/266/351/201/277/345/205/215/350/277/224/345/233/236/345/257/271/350/261/241/345/210/235/345/247/213/345/214/226/345/217/212sql.ErrNoRows/345/210/244/346/226/255.md +40 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/347/273/223/346/236/234/345/244/204/347/220/206/ORM/347/273/223/346/236/234/345/244/204/347/220/206-/344/270/272/347/251/272/345/210/244/346/226/255.md +142 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/347/273/223/346/236/234/345/244/204/347/220/206/ORM/347/273/223/346/236/234/345/244/204/347/220/206-/347/251/272/346/225/260/347/273/204/347/273/223/346/236/204/350/277/224/345/233/236.md +89 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/347/273/223/346/236/234/345/244/204/347/220/206/ORM/347/273/223/346/236/234/345/244/204/347/220/206-/347/273/223/346/236/234/347/261/273/345/236/213.md +151 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-Handler/347/211/271/346/200/247.md +65 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-Hook/347/211/271/346/200/247.md +58 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/344/270/273/344/273/216/345/210/207/346/215/242.md +37 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/344/272/213/345/212/241/345/244/204/347/220/206.md +102 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/345/206/231/345/205/245/344/277/235/345/255/230.md +195 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/345/255/227/346/256/265/350/216/267/345/217/226.md +34 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/345/255/227/346/256/265/350/277/207/346/273/244.md +227 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/345/257/271/350/261/241/350/276/223/345/205/245.md +25 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/202/262/350/247/202/351/224/201 & /344/271/220/350/247/202/351/224/201.md" +146 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/345/272/223/345/210/207/346/215/242.md +28 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-AllAndCount.md +39 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-Exist.md +33 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-Join/346/237/245/350/257/242.md +123 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-ScanAndCount.md +48 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-Scan/346/230/240/345/260/204.md +49 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-UnionUnionAll.md +82 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-Where/346/235/241/344/273/266.md +310 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-/345/210/206/347/273/204/346/216/222/345/272/217/350/277/207/346/273/244.md +47 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-/345/255/220/346/237/245/350/257/242/347/211/271/346/200/247.md +34 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-/345/270/270/347/224/250/346/223/215/344/275/234/347/244/272/344/276/213.md +271 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/225/260/346/215/256/346/237/245/350/257/242/ORM/346/237/245/350/257/242-/345/270/270/347/224/250/346/237/245/350/257/242/346/226/271/346/263/225.md +40 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/227/266/351/227/264/347/273/264/346/212/244/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/227/266/351/227/264/347/273/264/346/212/244.md +39 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/227/266/351/227/264/347/273/264/346/212/244//346/227/266/351/227/264/347/273/264/346/212/244-SoftTimeOption.md +42 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/227/266/351/227/264/347/273/264/346/212/244//346/227/266/351/227/264/347/273/264/346/212/244-/345/237/272/346/234/254/344/275/277/347/224/250.md +102 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/227/266/351/227/264/347/273/264/346/212/244//346/227/266/351/227/264/347/273/264/346/212/244-/345/270/203/345/260/224/345/255/227/346/256/265.md +45 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/227/266/351/227/264/347/273/264/346/212/244//346/227/266/351/227/264/347/273/264/346/212/244-/346/225/264/345/236/213/345/255/227/346/256/265.md +94 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/233/264/346/226/260/345/210/240/351/231/244.md +144 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/237/245/350/257/242/347/274/223/345/255/230.md +156 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/250/241/345/236/213/345/205/263/350/201/224//346/250/241/345/236/213/345/205/263/350/201/224-/345/212/250/346/200/201/345/205/263/350/201/224-ScanList.md +228 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/250/241/345/236/213/345/205/263/350/201/224//346/250/241/345/236/213/345/205/263/350/201/224-/351/235/231/346/200/201/345/205/263/350/201/224-With/347/211/271/346/200/247.md +725 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234-/346/250/241/345/236/213/345/210/233/345/273/272.md +131 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/223/276/345/274/217/346/223/215/344/275/234/ORM/351/223/276/345/274/217/346/223/215/344/275/234.md +21 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-RawSQL.md +67 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-SQL/346/215/225/350/216/267.md +158 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/345/206/205/345/265/214/347/273/223/346/236/204/346/224/257/346/214/201.md +18 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/345/255/227/346/256/265/346/230/240/345/260/204.md +154 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/346/227/245/345/277/227/350/276/223/345/207/272.md +38 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/347/251/272/350/267/221/347/211/271/346/200/247.md +24 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/347/261/273/345/236/213/350/257/206/345/210/253.md +34 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/347/261/273/345/236/213/350/275/254/346/215/242.md +45 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/350/260/203/350/257/225/346/250/241/345/274/217.md +20 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM/ORM/351/253/230/347/272/247/347/211/271/346/200/247/ORM/351/253/230/347/272/247/347/211/271/346/200/247-/350/277/236/346/216/245/346/261/240/347/212/266/346/200/201.md +79 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/345/272/223ORM//346/225/260/346/215/256/345/272/223ORM.md +75 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/345/217/202/346/225/260/347/261/273/345/236/213//346/225/260/346/215/256/346/240/241/351/252/214-Map/346/240/241/351/252/214/Map/346/240/241/351/252/214-/345/237/272/346/234/254/344/275/277/347/224/250.md +97 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/345/217/202/346/225/260/347/261/273/345/236/213//346/225/260/346/215/256/346/240/241/351/252/214-Map/346/240/241/351/252/214/Map/346/240/241/351/252/214-/346/240/241/351/252/214/351/241/272/345/272/217/346/200/247.md +49 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/345/217/202/346/225/260/347/261/273/345/236/213//346/225/260/346/215/256/346/240/241/351/252/214-Struct/346/240/241/351/252/214/Struct/346/240/241/351/252/214-Assoc/345/205/263/350/201/224.md +46 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/345/217/202/346/225/260/347/261/273/345/236/213//346/225/260/346/215/256/346/240/241/351/252/214-Struct/346/240/241/351/252/214/Struct/346/240/241/351/252/214-/345/237/272/346/234/254/344/275/277/347/224/250.md +216 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/345/217/202/346/225/260/347/261/273/345/236/213//346/225/260/346/215/256/346/240/241/351/252/214-/345/215/225/346/225/260/346/215/256/346/240/241/351/252/214.md +133 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/345/217/257/351/200/211/346/240/241/351/252/214.md +152 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/345/270/270/350/247/201/351/227/256/351/242/230.md +18 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/346/226/271/346/263/225/344/273/213/347/273/215.md +486 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/346/240/241/351/252/214/345/257/271/350/261/241.md +139 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/346/240/241/351/252/214/347/273/223/346/236/234.md +89 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/346/240/241/351/252/214/350/247/204/345/210/231.md +2073 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/350/207/252/345/256/232/344/271/211/350/247/204/345/210/231//350/207/252/345/256/232/344/271/211/350/247/204/345/210/231-/345/256/214/346/225/264/346/225/260/346/215/256/346/240/241/351/252/214.md +66 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/350/207/252/345/256/232/344/271/211/350/247/204/345/210/231//350/207/252/345/256/232/344/271/211/350/247/204/345/210/231-/350/247/204/345/210/231/346/263/250/345/206/214.md +274 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/350/207/252/345/256/232/344/271/211/351/224/231/350/257/257.md +96 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214-/351/200/222/345/275/222/346/240/241/351/252/214.md +196 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/225/260/346/215/256/346/240/241/351/252/214//346/225/260/346/215/256/346/240/241/351/252/214.md +30 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-Context.md +69 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-Flags/347/211/271/346/200/247.md +45 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-Handler.md +292 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-JSON/346/240/274/345/274/217.md +64 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-Rotate/347/211/271/346/200/247.md +89 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-Writer/346/216/245/345/217/243.md +111 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/345/240/206/346/240/210/346/211/223/345/215/260.md +137 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/345/270/270/350/247/201/351/227/256/351/242/230.md +18 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/345/274/202/346/255/245/350/276/223/345/207/272.md +109 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/346/226/207/344/273/266/347/233/256/345/275/225.md +92 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/346/227/245/345/277/227/347/272/247/345/210/253.md +187 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/350/260/203/350/257/225/344/277/241/346/201/257.md +46 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/351/205/215/347/275/256/347/256/241/347/220/206.md +109 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/351/223/276/345/274/217/346/223/215/344/275/234.md +123 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266-/351/242/234/350/211/262/346/211/223/345/215/260.md +62 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266//346/227/245/345/277/227/347/273/204/344/273/266.md +65 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-XSS/345/244/204/347/220/206.md +40 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/345/205/266/344/273/226/344/275/277/347/224/250.md +205 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/346/250/241/346/235/277/345/207/275/346/225/260//346/250/241/346/235/277/345/207/275/346/225/260-/345/206/205/347/275/256/345/207/275/346/225/260.md +298 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/346/250/241/346/235/277/345/207/275/346/225/260//346/250/241/346/235/277/345/207/275/346/225/260-/345/237/272/347/241/200/345/207/275/346/225/260.md +244 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/346/250/241/346/235/277/345/207/275/346/225/260//346/250/241/346/235/277/345/207/275/346/225/260-/350/207/252/345/256/232/344/271/211/345/207/275/346/225/260.md +48 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/346/250/241/346/235/277/345/217/230/351/207/217.md +49 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/346/250/241/346/235/277/345/270/203/345/261/200.md +148 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/346/250/241/346/235/277/346/240/207/347/255/276.md +193 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216-/346/250/241/346/235/277/351/205/215/347/275/256.md +122 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//346/250/241/346/235/277/345/274/225/346/223/216//346/250/241/346/235/277/345/274/225/346/223/216.md +184 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-Converter.md +249 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-Map/350/275/254/346/215/242.md +209 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-Scan/350/275/254/346/215/242.md +519 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-Structs/350/275/254/346/215/242.md +64 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-Struct/350/275/254/346/215/242.md +309 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-UnmarshalValue.md +272 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-/345/237/272/346/234/254/347/261/273/345/236/213.md +70 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-/346/200/247/350/203/275/346/265/213/350/257/225.md +29 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242-/350/207/252/345/256/232/344/271/211/347/261/273/345/236/213/350/275/254/346/215/242.md +398 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/261/273/345/236/213/350/275/254/346/215/242//347/261/273/345/236/213/350/275/254/346/215/242.md +23 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/274/223/345/255/230/347/256/241/347/220/206//347/274/223/345/255/230/347/256/241/347/220/206-Redis/347/274/223/345/255/230.md +52 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/274/223/345/255/230/347/256/241/347/220/206//347/274/223/345/255/230/347/256/241/347/220/206-/345/206/205/345/255/230/347/274/223/345/255/230.md +295 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/274/223/345/255/230/347/256/241/347/220/206//347/274/223/345/255/230/347/256/241/347/220/206-/346/216/245/345/217/243/350/256/276/350/256/241.md +31 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/274/223/345/255/230/347/256/241/347/220/206//347/274/223/345/255/230/347/256/241/347/220/206-/346/226/271/346/263/225/344/273/213/347/273/215.md +1030 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//347/274/223/345/255/230/347/256/241/347/220/206//347/274/223/345/255/230/347/256/241/347/220/206.md +114 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//350/260/203/350/257/225/346/250/241/345/274/217.md +51 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//350/265/204/346/272/220/347/256/241/347/220/206//350/265/204/346/272/220/347/256/241/347/220/206-/344/275/277/347/224/250/347/244/272/344/276/213.md +103 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//350/265/204/346/272/220/347/256/241/347/220/206//350/265/204/346/272/220/347/256/241/347/220/206-/345/267/245/345/205/267/346/211/223/345/214/205.md +89 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//350/265/204/346/272/220/347/256/241/347/220/206//350/265/204/346/272/220/347/256/241/347/220/206-/346/226/271/346/263/225/344/273/213/347/273/215.md +319 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//350/265/204/346/272/220/347/256/241/347/220/206//350/265/204/346/272/220/347/256/241/347/220/206-/346/226/271/346/263/225/346/211/223/345/214/205.md +82 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//350/265/204/346/272/220/347/256/241/347/220/206//350/265/204/346/272/220/347/256/241/347/220/206-/346/234/200/344/275/263/345/256/236/350/267/265.md +41 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//350/265/204/346/272/220/347/256/241/347/220/206//350/265/204/346/272/220/347/256/241/347/220/206.md +36 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-Loader/345/212/240/350/275/275/345/231/250.md +491 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-TOML/346/240/274/345/274/217.md +301 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-YAML/346/240/274/345/274/217.md +364 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-/345/270/270/347/224/250/346/226/271/346/263/225.md +362 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-/346/216/245/345/217/243/345/214/226/350/256/276/350/256/241//351/205/215/347/275/256/347/256/241/347/220/206-AdapterContent.md +49 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-/346/216/245/345/217/243/345/214/226/350/256/276/350/256/241//351/205/215/347/275/256/347/256/241/347/220/206-AdapterFile.md +98 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-/346/216/245/345/217/243/345/214/226/350/256/276/350/256/241//351/205/215/347/275/256/347/256/241/347/220/206-/346/216/245/345/217/243/345/214/226/350/256/276/350/256/241.md +45 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-/346/226/207/344/273/266/351/205/215/347/275/256.md +199 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-/351/205/215/347/275/256/345/257/271/350/261/241.md +72 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206-/351/205/215/347/275/256/347/233/221/345/220/254/345/233/236/350/260/203.md +150 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/205/215/347/275/256/347/256/241/347/220/206//351/205/215/347/275/256/347/256/241/347/220/206.md +31 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/345/205/266/344/273/226/347/211/271/346/200/247.md +207 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/345/233/275/351/231/205/345/214/226/346/224/257/346/214/201.md +324 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/345/240/206/346/240/210/347/211/271/346/200/247.md +245 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/345/270/270/347/224/250/346/226/271/346/263/225.md +62 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/346/200/247/350/203/275/346/265/213/350/257/225.md +19 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/346/234/200/344/275/263/345/256/236/350/267/265.md +107 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/346/257/224/350/276/203.md +232 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/347/211/271/346/200/247//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/345/256/236/347/216/260.md +87 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/347/211/271/346/200/247//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/346/211/251/345/261/225.md +79 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/347/211/271/346/200/247//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/346/216/245/345/217/243.md +60 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/347/211/271/346/200/247//351/224/231/350/257/257/345/244/204/347/220/206-/351/224/231/350/257/257/347/240/201/346/226/271/346/263/225.md +162 -0
- package/skills/goframe-v2/references//346/240/270/345/277/203/347/273/204/344/273/266//351/224/231/350/257/257/345/244/204/347/220/206//351/224/231/350/257/257/345/244/204/347/220/206.md +15 -0
- package/skills/goframe-v2/references//346/241/206/346/236/266/350/256/276/350/256/241/Golang/346/236/232/344/270/276/345/200/274/347/256/241/347/220/206.md +36 -0
- package/skills/goframe-v2/references//346/241/206/346/236/266/350/256/276/350/256/241//345/267/245/347/250/213/345/274/200/345/217/221/350/256/276/350/256/241//344/273/243/347/240/201/345/210/206/345/261/202/350/256/276/350/256/241.md +73 -0
- package/skills/goframe-v2/references//346/241/206/346/236/266/350/256/276/350/256/241//345/267/245/347/250/213/345/274/200/345/217/221/350/256/276/350/256/241//345/267/245/347/250/213/347/233/256/345/275/225/350/256/276/350/256/241.md +165 -0
- package/skills/goframe-v2/references//346/241/206/346/236/266/350/256/276/350/256/241//345/267/245/347/250/213/345/274/200/345/217/221/350/256/276/350/256/241//345/276/256/346/234/215/345/212/241/345/244/247/344/273/223/347/256/241/347/220/206/346/250/241/345/274/217.md +122 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/212/237/350/203/275/350/260/203/350/257/225//350/260/203/350/257/225/345/212/237/350/203/275-gdebug.md +38 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/212/240/345/257/206/350/247/243/345/257/206/AES/347/256/227/346/263/225-gaes.md +19 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/212/240/345/257/206/350/247/243/345/257/206/DES/347/256/227/346/263/225-gdes.md +19 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/212/240/345/257/206/350/247/243/345/257/206/RSA/347/256/227/346/263/225-grsa.md +267 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/212/240/345/257/206/350/247/243/345/257/206/SHA256/347/256/227/346/263/225-gsha256.md +353 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/215/225/345/205/203/346/265/213/350/257/225//345/215/225/345/205/203/346/265/213/350/257/225-gtest.md +413 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/256/236/347/224/250/345/267/245/345/205/267//345/205/203/346/225/260/346/215/256-gmeta.md +89 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/256/236/347/224/250/345/267/245/345/205/267//345/224/257/344/270/200/346/225/260-guid.md +111 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/256/236/347/224/250/345/267/245/345/205/267//345/267/245/345/205/267/346/226/271/346/263/225-gutil.md +239 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//345/256/236/347/224/250/345/267/245/345/205/267//351/232/217/346/234/272/346/225/260-grand.md +55 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/255/227/345/205/270/347/261/273/345/236/213-gmap//345/255/227/345/205/270/347/261/273/345/236/213-gmap.md +36 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/255/227/345/205/270/347/261/273/345/236/213-gmap//345/255/227/345/205/270/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +544 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/255/227/345/205/270/347/261/273/345/236/213-gmap//345/255/227/345/205/270/347/261/273/345/236/213-/346/200/247/350/203/275/346/265/213/350/257/225.md +79 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/255/227/345/205/270/347/261/273/345/236/213-gmap//345/255/227/345/205/270/347/261/273/345/236/213-/346/226/271/346/263/225/344/273/213/347/273/215.md +1320 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/256/211/345/205/250/347/261/273/345/236/213-gtype//345/256/211/345/205/250/347/261/273/345/236/213-gtype.md +23 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/256/211/345/205/250/347/261/273/345/236/213-gtype//345/256/211/345/205/250/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +110 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/256/211/345/205/250/347/261/273/345/236/213-gtype//345/256/211/345/205/250/347/261/273/345/236/213-/346/200/247/350/203/275/346/265/213/350/257/225.md +38 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/257/271/350/261/241/345/244/215/347/224/250-gpool//345/257/271/350/261/241/345/244/215/347/224/250-gpool.md +93 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/257/271/350/261/241/345/244/215/347/224/250-gpool//345/257/271/350/261/241/345/244/215/347/224/250-/345/237/272/346/234/254/344/275/277/347/224/250.md +226 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/271/266/345/217/221/345/256/211/345/205/250/347/216/257-gring//345/271/266/345/217/221/345/256/211/345/205/250/347/216/257-gring.md +202 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/271/266/345/217/221/345/256/211/345/205/250/347/216/257-gring//345/271/266/345/217/221/345/256/211/345/205/250/347/216/257-/345/237/272/346/234/254/344/275/277/347/224/250.md +396 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//345/271/266/345/217/221/345/256/211/345/205/250/347/216/257-gring//345/271/266/345/217/221/345/256/211/345/205/250/347/216/257-/346/226/271/346/263/225/344/273/213/347/273/215.md +626 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/225/260/347/273/204/347/261/273/345/236/213-garray//346/225/260/347/273/204/347/261/273/345/236/213-garray.md +32 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/225/260/347/273/204/347/261/273/345/236/213-garray//346/225/260/347/273/204/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +581 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/225/260/347/273/204/347/261/273/345/236/213-garray//346/225/260/347/273/204/347/261/273/345/236/213-/346/226/271/346/263/225/344/273/213/347/273/215.md +1389 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/240/221/345/275/242/347/261/273/345/236/213-gtree//346/240/221/345/275/242/347/261/273/345/236/213-gtree.md +140 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/240/221/345/275/242/347/261/273/345/236/213-gtree//346/240/221/345/275/242/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +329 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/240/221/345/275/242/347/261/273/345/236/213-gtree//346/240/221/345/275/242/347/261/273/345/236/213-/346/226/271/346/263/225/344/273/213/347/273/215.md +1254 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/263/233/345/236/213/347/261/273/345/236/213-gvar//346/263/233/345/236/213/347/261/273/345/236/213-gvar.md +21 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/263/233/345/236/213/347/261/273/345/236/213-gvar//346/263/233/345/236/213/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +107 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/263/233/345/236/213/347/261/273/345/236/213-gvar//346/263/233/345/236/213/347/261/273/345/236/213-/346/226/271/346/263/225/344/273/213/347/273/215.md +1477 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//346/263/233/345/236/213/347/261/273/345/236/213-gvar//346/263/233/345/236/213/347/261/273/345/236/213-/346/263/250/346/204/217/344/272/213/351/241/271.md +32 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/223/276/350/241/250/347/261/273/345/236/213-glist//351/223/276/350/241/250/347/261/273/345/236/213-glist.md +26 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/223/276/350/241/250/347/261/273/345/236/213-glist//351/223/276/350/241/250/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +436 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/223/276/350/241/250/347/261/273/345/236/213-glist//351/223/276/350/241/250/347/261/273/345/236/213-/346/200/247/350/203/275/346/265/213/350/257/225.md +13 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/230/237/345/210/227/347/261/273/345/236/213-gqueue//351/230/237/345/210/227/347/261/273/345/236/213-gqueue.md +27 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/230/237/345/210/227/347/261/273/345/236/213-gqueue//351/230/237/345/210/227/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +265 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/230/237/345/210/227/347/261/273/345/236/213-gqueue//351/230/237/345/210/227/347/261/273/345/236/213-/346/200/247/350/203/275/346/265/213/350/257/225.md +16 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/233/206/345/220/210/347/261/273/345/236/213-gset//351/233/206/345/220/210/347/261/273/345/236/213-gset.md +26 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/233/206/345/220/210/347/261/273/345/236/213-gset//351/233/206/345/220/210/347/261/273/345/236/213-/345/237/272/346/234/254/344/275/277/347/224/250.md +457 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/233/206/345/220/210/347/261/273/345/236/213-gset//351/233/206/345/220/210/347/261/273/345/236/213-/346/200/247/350/203/275/346/265/213/350/257/225.md +24 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/225/260/346/215/256/347/273/223/346/236/204//351/233/206/345/220/210/347/261/273/345/236/213-gset//351/233/206/345/220/210/347/261/273/345/236/213-/346/226/271/346/263/225/344/273/213/347/273/215.md +764 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/226/207/346/234/254/345/244/204/347/220/206//345/255/227/347/254/246/344/270/262/345/244/204/347/220/206-gstr.md +2641 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/226/207/346/234/254/345/244/204/347/220/206//346/255/243/345/210/231/350/241/250/350/276/276/345/274/217-gregex//346/255/243/345/210/231/350/241/250/350/276/276/345/274/217-gregex.md +15 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/226/207/346/234/254/345/244/204/347/220/206//346/255/243/345/210/231/350/241/250/350/276/276/345/274/217-gregex//346/255/243/345/210/231/350/241/250/350/276/276/345/274/217-/345/237/272/346/234/254/344/275/277/347/224/250.md +21 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//346/226/207/346/234/254/345/244/204/347/220/206//346/255/243/345/210/231/350/241/250/350/276/276/345/274/217-gregex//346/255/243/345/210/231/350/241/250/350/276/276/345/274/217-/346/226/271/346/263/225/344/273/213/347/273/215.md +325 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//344/270/212/344/270/213/346/226/207-gctx.md +15 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//344/272/222/346/226/245/351/224/201-gmutex.md +145 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/206/205/345/255/230/351/224/201-gmlock.md +140 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/215/217/347/250/213/347/256/241/347/220/206-grpool.md +371 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/256/232/346/227/266/344/273/273/345/212/241-gcron//345/256/232/346/227/266/344/273/273/345/212/241-gcron.md +36 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/256/232/346/227/266/344/273/273/345/212/241-gcron//345/256/232/346/227/266/344/273/273/345/212/241-gcron/344/270/216gtimer.md +13 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/256/232/346/227/266/344/273/273/345/212/241-gcron//345/256/232/346/227/266/344/273/273/345/212/241-/345/237/272/346/234/254/344/275/277/347/224/250.md +411 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/256/232/346/227/266/344/273/273/345/212/241-gcron//345/256/232/346/227/266/344/273/273/345/212/241-/346/227/245/345/277/227/347/256/241/347/220/206.md +42 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/256/232/346/227/266/344/273/273/345/212/241-gcron//345/256/232/346/227/266/344/273/273/345/212/241-/350/241/250/350/276/276/345/274/217.md +97 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/256/232/346/227/266/345/231/250-gtimer//345/256/232/346/227/266/345/231/250-gtimer.md +58 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/256/232/346/227/266/345/231/250-gtimer//345/256/232/346/227/266/345/231/250-/345/237/272/346/234/254/344/275/277/347/224/250.md +213 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//345/257/271/350/261/241/344/277/241/346/201/257-gstructs.md +130 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/226/207/344/273/266/347/233/221/346/216/247-gfsnotify//346/226/207/344/273/266/347/233/221/346/216/247-gfsnotify.md +19 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/226/207/344/273/266/347/233/221/346/216/247-gfsnotify//346/226/207/344/273/266/347/233/221/346/216/247-/346/267/273/345/212/240/347/233/221/346/216/247.md +52 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/226/207/344/273/266/347/233/221/346/216/247-gfsnotify//346/226/207/344/273/266/347/233/221/346/216/247-/347/247/273/351/231/244/347/233/221/346/216/247.md +88 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/226/207/344/273/266/347/233/221/346/216/247-gfsnotify//346/226/207/344/273/266/347/233/221/346/216/247-/347/263/273/347/273/237/345/217/202/346/225/260.md +28 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/226/207/344/273/266/347/256/241/347/220/206-gfile.md +2517 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/227/266/351/227/264/347/256/241/347/220/206-gtime//346/227/266/351/227/264/347/256/241/347/220/206-gtime.md +17 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/227/266/351/227/264/347/256/241/347/220/206-gtime//346/227/266/351/227/264/347/256/241/347/220/206-/345/267/245/345/205/267/346/226/271/346/263/225.md +200 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/227/266/351/227/264/347/256/241/347/220/206-gtime//346/227/266/351/227/264/347/256/241/347/220/206-/346/226/271/346/263/225/344/273/213/347/273/215.md +685 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/227/266/351/227/264/347/256/241/347/220/206-gtime//346/227/266/351/227/264/347/256/241/347/220/206-/346/227/266/345/214/272/350/256/276/347/275/256.md +106 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/227/266/351/227/264/347/256/241/347/220/206-gtime//346/227/266/351/227/264/347/256/241/347/220/206-/346/227/266/351/227/264/345/257/271/350/261/241.md +157 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//346/227/266/351/227/264/347/256/241/347/220/206-gtime//346/227/266/351/227/264/347/256/241/347/220/206-/346/227/266/351/227/264/346/240/274/345/274/217.md +45 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//347/216/257/345/242/203/345/217/230/351/207/217-genv.md +104 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//350/277/233/347/250/213/347/256/241/347/220/206-gproc//350/277/233/347/250/213/347/256/241/347/220/206-gproc.md +24 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//350/277/233/347/250/213/347/256/241/347/220/206-gproc//350/277/233/347/250/213/347/256/241/347/220/206-/344/277/241/345/217/267/347/233/221/345/220/254.md +147 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//350/277/233/347/250/213/347/256/241/347/220/206-gproc//350/277/233/347/250/213/347/256/241/347/220/206-/345/237/272/346/234/254/344/275/277/347/224/250.md +110 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//350/277/233/347/250/213/347/256/241/347/220/206-gproc//350/277/233/347/250/213/347/256/241/347/220/206-/350/277/233/347/250/213/351/200/232/344/277/241.md +76 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/263/273/347/273/237/347/233/270/345/205/263//350/277/233/347/250/213/347/256/241/347/220/206-gproc//350/277/233/347/250/213/347/256/241/347/220/206-/351/223/276/350/267/257/350/267/237/350/270/252.md +57 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201/URL/347/274/226/350/247/243/347/240/201-gurl.md +123 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//344/272/214/350/277/233/345/210/266/347/274/226/350/247/243/347/240/201-gbinary.md +173 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//345/255/227/347/254/246/351/233/206/350/275/254/346/215/242-gcharset.md +52 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//347/273/217/345/205/270/345/223/210/345/270/214/345/207/275/346/225/260-ghash.md +101 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-FAQ.md +53 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-Struct/350/275/254/346/215/242.md +28 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson.md +22 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-/345/212/250/346/200/201/345/210/233/345/273/272/344/277/256/346/224/271.md +68 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-/345/257/271/350/261/241/345/210/233/345/273/272.md +110 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-/345/261/202/347/272/247/350/256/277/351/227/256.md +120 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-/346/225/260/346/215/256/346/240/274/345/274/217/350/275/254/346/215/242.md +55 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/274/226/347/240/201/350/247/243/347/240/201//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-gjson//351/200/232/347/224/250/347/274/226/350/247/243/347/240/201-/346/226/271/346/263/225/344/273/213/347/273/215.md +2644 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/TCP/347/273/204/344/273/266/TCP/347/273/204/344/273/266-TLS/345/212/240/345/257/206.md +143 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/TCP/347/273/204/344/273/266/TCP/347/273/204/344/273/266-/345/267/245/345/205/267/346/226/271/346/263/225.md +61 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/TCP/347/273/204/344/273/266/TCP/347/273/204/344/273/266-/350/277/236/346/216/245/345/257/271/350/261/241/TCP/347/273/204/344/273/266-/350/277/236/346/216/245/345/257/271/350/261/241.md +259 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/TCP/347/273/204/344/273/266/TCP/347/273/204/344/273/266-/350/277/236/346/216/245/345/257/271/350/261/241//350/277/236/346/216/245/345/257/271/350/261/241-/346/266/210/346/201/257/345/214/205/345/244/204/347/220/206.md +228 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/TCP/347/273/204/344/273/266/TCP/347/273/204/344/273/266-/350/277/236/346/216/245/345/257/271/350/261/241//350/277/236/346/216/245/345/257/271/350/261/241-/351/200/232/344/277/241/345/274/200/345/217/221/350/277/233/351/230/266.md +220 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/TCP/347/273/204/344/273/266/TCP/347/273/204/344/273/266-/350/277/236/346/216/245/346/261/240/347/211/271/346/200/247.md +164 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/TCP/347/273/204/344/273/266/TCP/347/273/204/344/273/266.md +73 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/UDP/347/273/204/344/273/266/UDP/347/273/204/344/273/266-/345/267/245/345/205/267/346/226/271/346/263/225.md +13 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/UDP/347/273/204/344/273/266/UDP/347/273/204/344/273/266-/350/277/236/346/216/245/345/257/271/350/261/241.md +83 -0
- package/skills/goframe-v2/references//347/273/204/344/273/266/345/210/227/350/241/250//347/275/221/347/273/234/347/273/204/344/273/266/UDP/347/273/204/344/273/266/UDP/347/273/204/344/273/266.md +47 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//345/237/272/346/234/254/344/273/213/347/273/215.md +143 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//346/216/245/345/217/243/345/274/200/345/217/221/Step1 - /350/256/276/350/256/241/346/225/260/346/215/256/350/241/250.md" +62 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//346/216/245/345/217/243/345/274/200/345/217/221/Step2 - /347/224/237/346/210/220dao_do_entity.md" +140 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//346/216/245/345/217/243/345/274/200/345/217/221/Step3 - /347/274/226/345/206/231api/346/216/245/345/217/243/345/256/232/344/271/211.md" +104 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//346/216/245/345/217/243/345/274/200/345/217/221/Step4 - /347/224/237/346/210/220controller/344/273/243/347/240/201.md" +138 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//346/216/245/345/217/243/345/274/200/345/217/221/Step5 - /345/256/214/346/210/220/346/216/245/345/217/243/351/200/273/350/276/221/345/256/236/347/216/260.md" +152 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//346/216/245/345/217/243/345/274/200/345/217/221/Step6 - /351/205/215/347/275/256/344/270/216/350/267/257/347/224/261.md" +97 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//346/216/245/345/217/243/345/274/200/345/217/221/Step7 - /345/220/257/345/212/250/344/270/216/346/265/213/350/257/225.md" +133 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/350/204/232/346/211/213/346/236/266//351/241/271/347/233/256/345/220/257/345/212/250.md +90 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/351/203/250/347/275/262//344/273/243/347/220/206/351/203/250/347/275/262.md +81 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/351/203/250/347/275/262//345/256/271/345/231/250/351/203/250/347/275/262.md +78 -0
- package/skills/goframe-v2/references//351/241/271/347/233/256/351/203/250/347/275/262//347/213/254/347/253/213/351/203/250/347/275/262.md +126 -0
- package/skills/golang-patterns/SKILL.md +674 -0
- package/skills/golang-testing/SKILL.md +720 -0
- package/skills/google-workspace-ops/SKILL.md +95 -0
- package/skills/graphify/SKILL.md +51 -0
- package/skills/graphify/agents/openai.yaml +4 -0
- package/skills/harness-audit/SKILL.md +135 -0
- package/skills/harness-audit/agents/openai.yaml +4 -0
- package/skills/healthcare-cdss-patterns/SKILL.md +245 -0
- package/skills/healthcare-emr-patterns/SKILL.md +159 -0
- package/skills/healthcare-eval-harness/SKILL.md +207 -0
- package/skills/healthcare-phi-compliance/SKILL.md +145 -0
- package/skills/hexagonal-architecture/SKILL.md +276 -0
- package/skills/inventory-demand-planning/SKILL.md +247 -0
- package/skills/investor-materials/SKILL.md +96 -0
- package/skills/investor-outreach/SKILL.md +87 -0
- package/skills/iterative-retrieval/SKILL.md +211 -0
- package/skills/iterative-retrieval/agents/openai.yaml +4 -0
- package/skills/java-coding-standards/SKILL.md +147 -0
- package/skills/java-unit-test/SKILL.md +256 -0
- package/skills/java-unit-test/agents/openai.yaml +4 -0
- package/skills/jpa-patterns/SKILL.md +151 -0
- package/skills/karpathy-guidelines/SKILL.md +46 -0
- package/skills/karpathy-guidelines/agents/openai.yaml +4 -0
- package/skills/kotlin-coroutines-flows/SKILL.md +284 -0
- package/skills/kotlin-exposed-patterns/SKILL.md +719 -0
- package/skills/kotlin-ktor-patterns/SKILL.md +689 -0
- package/skills/kotlin-patterns/SKILL.md +711 -0
- package/skills/kotlin-testing/SKILL.md +824 -0
- package/skills/langfuse-coding-trace/SKILL.md +129 -0
- package/skills/langfuse-coding-trace/agents/openai.yaml +4 -0
- package/skills/langfuse-coding-trace/trace.py +226 -0
- package/skills/laravel-patterns/SKILL.md +415 -0
- package/skills/laravel-plugin-discovery/SKILL.md +229 -0
- package/skills/laravel-security/SKILL.md +285 -0
- package/skills/laravel-tdd/SKILL.md +283 -0
- package/skills/laravel-verification/SKILL.md +179 -0
- package/skills/lead-intelligence/SKILL.md +345 -0
- package/skills/lead-intelligence/agents/enrichment-agent.md +85 -0
- package/skills/lead-intelligence/agents/mutual-mapper.md +75 -0
- package/skills/lead-intelligence/agents/outreach-drafter.md +98 -0
- package/skills/lead-intelligence/agents/signal-scorer.md +60 -0
- package/skills/liquid-glass-design/SKILL.md +279 -0
- package/skills/logistics-exception-management/SKILL.md +222 -0
- package/skills/manim-video/SKILL.md +89 -0
- package/skills/manim-video/assets/network_graph_scene.py +52 -0
- package/skills/market-research/SKILL.md +75 -0
- package/skills/maven-qa/SKILL.md +199 -0
- package/skills/maven-qa/agents/openai.yaml +4 -0
- package/skills/maven-qa/scripts/parse_static_analysis.py +252 -0
- package/skills/maven-qa/scripts/parse_surefire.py +113 -0
- package/skills/maven-qa/scripts/requirements.txt +1 -0
- package/skills/mcp-server-patterns/SKILL.md +67 -0
- package/skills/multi-perspective-review/SKILL.md +112 -0
- package/skills/mysql-query/SKILL.md +125 -0
- package/skills/mysql-query/agents/openai.yaml +4 -0
- package/skills/mysql-query/scripts/query.py +79 -0
- package/skills/mysql-query/scripts/requirements.txt +1 -0
- package/skills/nanoclaw-repl/SKILL.md +33 -0
- package/skills/nextjs-turbopack/SKILL.md +44 -0
- package/skills/nutrient-document-processing/SKILL.md +167 -0
- package/skills/nuxt4-patterns/SKILL.md +100 -0
- package/skills/openclaw-persona-forge/SKILL.md +296 -0
- package/skills/openclaw-persona-forge/gacha.py +224 -0
- package/skills/openclaw-persona-forge/gacha.sh +5 -0
- package/skills/openclaw-persona-forge/references/avatar-style.md +124 -0
- package/skills/openclaw-persona-forge/references/boundary-rules.md +53 -0
- package/skills/openclaw-persona-forge/references/error-handling.md +53 -0
- package/skills/openclaw-persona-forge/references/identity-tension.md +48 -0
- package/skills/openclaw-persona-forge/references/naming-system.md +39 -0
- package/skills/openclaw-persona-forge/references/output-template.md +166 -0
- package/skills/opensource-pipeline/SKILL.md +255 -0
- package/skills/pairwise-test-design/SKILL.md +36 -0
- package/skills/pairwise-test-design/agents/openai.yaml +4 -0
- package/skills/parallel-execution/SKILL.md +69 -0
- package/skills/parallel-execution/agents/openai.yaml +58 -0
- package/skills/perl-patterns/SKILL.md +504 -0
- package/skills/perl-security/SKILL.md +503 -0
- package/skills/perl-testing/SKILL.md +475 -0
- package/skills/plankton-code-quality/SKILL.md +236 -0
- package/skills/plankton-code-quality/agents/openai.yaml +4 -0
- package/skills/postgres-patterns/SKILL.md +147 -0
- package/skills/product-lens/SKILL.md +85 -0
- package/skills/production-scheduling/SKILL.md +238 -0
- package/skills/project-flow-ops/SKILL.md +111 -0
- package/skills/project-guidelines-example/SKILL.md +349 -0
- package/skills/project-guidelines-example/agents/openai.yaml +4 -0
- package/skills/prompt-optimizer/SKILL.md +397 -0
- package/skills/pua/SKILL.md +77 -0
- package/skills/pua/agents/openai.yaml +4 -0
- package/skills/pua/references/display-protocol.md +32 -0
- package/skills/pua/references/flavors.md +44 -0
- package/skills/pua/references/methodology-alibaba.md +14 -0
- package/skills/pua/references/methodology-huawei.md +15 -0
- package/skills/pua/references/methodology-musk.md +15 -0
- package/skills/pua/references/methodology-router.md +28 -0
- package/skills/pua-loop/SKILL.md +18 -0
- package/skills/pua-loop/agents/openai.yaml +4 -0
- package/skills/pua-mama/SKILL.md +17 -0
- package/skills/pua-mama/agents/openai.yaml +4 -0
- package/skills/pua-p10/SKILL.md +18 -0
- package/skills/pua-p10/agents/openai.yaml +4 -0
- package/skills/pua-p7/SKILL.md +24 -0
- package/skills/pua-p7/agents/openai.yaml +4 -0
- package/skills/pua-p9/SKILL.md +24 -0
- package/skills/pua-p9/agents/openai.yaml +4 -0
- package/skills/pua-pro/SKILL.md +18 -0
- package/skills/pua-pro/agents/openai.yaml +4 -0
- package/skills/pua-yes/SKILL.md +17 -0
- package/skills/pua-yes/agents/openai.yaml +4 -0
- package/skills/python-patterns/SKILL.md +750 -0
- package/skills/python-testing/SKILL.md +816 -0
- package/skills/pytorch-patterns/SKILL.md +396 -0
- package/skills/quality-nonconformance/SKILL.md +260 -0
- package/skills/quick-execution/SKILL.md +78 -0
- package/skills/ralphinho-rfc-pipeline/SKILL.md +67 -0
- package/skills/regex-vs-llm-structured-text/SKILL.md +220 -0
- package/skills/remotion-video-creation/SKILL.md +43 -0
- package/skills/remotion-video-creation/rules/3d.md +86 -0
- package/skills/remotion-video-creation/rules/animations.md +29 -0
- package/skills/remotion-video-creation/rules/assets/charts-bar-chart.tsx +173 -0
- package/skills/remotion-video-creation/rules/assets/text-animations-typewriter.tsx +100 -0
- package/skills/remotion-video-creation/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/skills/remotion-video-creation/rules/assets.md +78 -0
- package/skills/remotion-video-creation/rules/audio.md +172 -0
- package/skills/remotion-video-creation/rules/calculate-metadata.md +104 -0
- package/skills/remotion-video-creation/rules/can-decode.md +75 -0
- package/skills/remotion-video-creation/rules/charts.md +58 -0
- package/skills/remotion-video-creation/rules/compositions.md +146 -0
- package/skills/remotion-video-creation/rules/display-captions.md +126 -0
- package/skills/remotion-video-creation/rules/extract-frames.md +229 -0
- package/skills/remotion-video-creation/rules/fonts.md +152 -0
- package/skills/remotion-video-creation/rules/get-audio-duration.md +58 -0
- package/skills/remotion-video-creation/rules/get-video-dimensions.md +68 -0
- package/skills/remotion-video-creation/rules/get-video-duration.md +58 -0
- package/skills/remotion-video-creation/rules/gifs.md +138 -0
- package/skills/remotion-video-creation/rules/images.md +130 -0
- package/skills/remotion-video-creation/rules/import-srt-captions.md +67 -0
- package/skills/remotion-video-creation/rules/lottie.md +67 -0
- package/skills/remotion-video-creation/rules/measuring-dom-nodes.md +34 -0
- package/skills/remotion-video-creation/rules/measuring-text.md +143 -0
- package/skills/remotion-video-creation/rules/sequencing.md +106 -0
- package/skills/remotion-video-creation/rules/tailwind.md +11 -0
- package/skills/remotion-video-creation/rules/text-animations.md +20 -0
- package/skills/remotion-video-creation/rules/timing.md +179 -0
- package/skills/remotion-video-creation/rules/transcribe-captions.md +19 -0
- package/skills/remotion-video-creation/rules/transitions.md +122 -0
- package/skills/remotion-video-creation/rules/trimming.md +52 -0
- package/skills/remotion-video-creation/rules/videos.md +171 -0
- package/skills/repo-scan/SKILL.md +78 -0
- package/skills/returns-reverse-logistics/SKILL.md +240 -0
- package/skills/roles/architect/SKILL.md +105 -0
- package/skills/roles/architect/agents/openai.yaml +4 -0
- package/skills/roles/backend-engineer/SKILL.md +116 -0
- package/skills/roles/backend-engineer/agents/openai.yaml +4 -0
- package/skills/roles/devops-engineer/SKILL.md +99 -0
- package/skills/roles/devops-engineer/agents/openai.yaml +4 -0
- package/skills/roles/frontend-engineer/SKILL.md +103 -0
- package/skills/roles/frontend-engineer/agents/openai.yaml +4 -0
- package/skills/roles/product-manager/SKILL.md +106 -0
- package/skills/roles/product-manager/agents/openai.yaml +4 -0
- package/skills/roles/project-manager/SKILL.md +90 -0
- package/skills/roles/project-manager/agents/openai.yaml +4 -0
- package/skills/roles/qa-engineer/SKILL.md +114 -0
- package/skills/roles/qa-engineer/agents/openai.yaml +4 -0
- package/skills/roles/tech-lead/SKILL.md +120 -0
- package/skills/roles/tech-lead/agents/openai.yaml +4 -0
- package/skills/rtk-token-optimization/SKILL.md +98 -0
- package/skills/rtk-token-optimization/agents/openai.yaml +4 -0
- package/skills/rules-distill/SKILL.md +264 -0
- package/skills/rules-distill/scripts/scan-rules.sh +58 -0
- package/skills/rules-distill/scripts/scan-skills.sh +129 -0
- package/skills/rust-patterns/SKILL.md +499 -0
- package/skills/rust-testing/SKILL.md +500 -0
- package/skills/safety-guard/SKILL.md +75 -0
- package/skills/santa-method/SKILL.md +306 -0
- package/skills/search-first/SKILL.md +161 -0
- package/skills/security-review/SKILL.md +495 -0
- package/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/skills/security-scan/SKILL.md +165 -0
- package/skills/session-continuity/SKILL.md +103 -0
- package/skills/skill-comply/SKILL.md +58 -0
- package/skills/skill-comply/fixtures/compliant_trace.jsonl +5 -0
- package/skills/skill-comply/fixtures/noncompliant_trace.jsonl +3 -0
- package/skills/skill-comply/fixtures/tdd_spec.yaml +44 -0
- package/skills/skill-comply/prompts/classifier.md +24 -0
- package/skills/skill-comply/prompts/scenario_generator.md +62 -0
- package/skills/skill-comply/prompts/spec_generator.md +42 -0
- package/skills/skill-comply/pyproject.toml +15 -0
- package/skills/skill-comply/scripts/__init__.py +1 -0
- package/skills/skill-comply/scripts/classifier.py +85 -0
- package/skills/skill-comply/scripts/grader.py +122 -0
- package/skills/skill-comply/scripts/parser.py +107 -0
- package/skills/skill-comply/scripts/report.py +170 -0
- package/skills/skill-comply/scripts/run.py +127 -0
- package/skills/skill-comply/scripts/runner.py +161 -0
- package/skills/skill-comply/scripts/scenario_generator.py +70 -0
- package/skills/skill-comply/scripts/spec_generator.py +72 -0
- package/skills/skill-comply/scripts/utils.py +13 -0
- package/skills/skill-comply/tests/test_grader.py +137 -0
- package/skills/skill-comply/tests/test_parser.py +90 -0
- package/skills/skill-stocktake/SKILL.md +194 -0
- package/skills/skill-stocktake/agents/openai.yaml +4 -0
- package/skills/skill-stocktake/scripts/quick-diff.sh +87 -0
- package/skills/skill-stocktake/scripts/save-results.sh +56 -0
- package/skills/skill-stocktake/scripts/scan.sh +170 -0
- package/skills/springboot-patterns/SKILL.md +314 -0
- package/skills/springboot-security/SKILL.md +272 -0
- package/skills/springboot-tdd/SKILL.md +158 -0
- package/skills/springboot-verification/SKILL.md +231 -0
- package/skills/strategic-compact/SKILL.md +111 -0
- package/skills/strategic-compact/agents/openai.yaml +4 -0
- package/skills/subagent-driven-development/SKILL.md +102 -0
- package/skills/swift-actor-persistence/SKILL.md +143 -0
- package/skills/swift-concurrency-6-2/SKILL.md +216 -0
- package/skills/swift-protocol-di-testing/SKILL.md +190 -0
- package/skills/swiftui-patterns/SKILL.md +259 -0
- package/skills/systematic-debugging/SKILL.md +35 -0
- package/skills/systematic-debugging/agents/openai.yaml +4 -0
- package/skills/tdd-workflow/SKILL.md +463 -0
- package/skills/tdd-workflow/agents/openai.yaml +4 -0
- package/skills/team-builder/SKILL.md +168 -0
- package/skills/testcontainers-integration-testing/SKILL.md +36 -0
- package/skills/testcontainers-integration-testing/agents/openai.yaml +4 -0
- package/skills/token-budget-advisor/SKILL.md +133 -0
- package/skills/ui-demo/SKILL.md +465 -0
- package/skills/ui-ux-promax/SKILL.md +373 -0
- package/skills/verification-loop/SKILL.md +126 -0
- package/skills/verification-loop/agents/openai.yaml +4 -0
- package/skills/video-editing/SKILL.md +310 -0
- package/skills/videodb/SKILL.md +374 -0
- package/skills/videodb/reference/api-reference.md +550 -0
- package/skills/videodb/reference/capture-reference.md +407 -0
- package/skills/videodb/reference/capture.md +101 -0
- package/skills/videodb/reference/editor.md +443 -0
- package/skills/videodb/reference/generative.md +331 -0
- package/skills/videodb/reference/rtstream-reference.md +564 -0
- package/skills/videodb/reference/rtstream.md +65 -0
- package/skills/videodb/reference/search.md +230 -0
- package/skills/videodb/reference/streaming.md +406 -0
- package/skills/videodb/reference/use-cases.md +118 -0
- package/skills/videodb/scripts/ws_listener.py +282 -0
- package/skills/visa-doc-translate/README.md +86 -0
- package/skills/visa-doc-translate/SKILL.md +117 -0
- package/skills/wave-execution/SKILL.md +106 -0
- package/skills/workflow-forensics/SKILL.md +163 -0
- package/skills/workspace-surface-audit/SKILL.md +125 -0
- package/skills/x-api/SKILL.md +230 -0
- package/templates/DESIGN.md +267 -0
- package/templates/api-contract.md +46 -0
- package/templates/backlog-snapshot.md +41 -0
- package/templates/closeout-summary.md +55 -0
- package/templates/context-docs/PROJECT.md +36 -0
- package/templates/context-docs/REQUIREMENTS.md +36 -0
- package/templates/context-docs/ROADMAP.md +20 -0
- package/templates/context-docs/STATE.md +34 -0
- package/templates/deployment-context.md +86 -0
- package/templates/design-system-brief.md +58 -0
- package/templates/launch-acceptance.md +59 -0
- package/templates/release-plan.md +61 -0
- package/templates/system/agent-role.md.tmpl +64 -0
- package/templates/system/command.md.tmpl +26 -0
- package/templates/system/role-skill.md.tmpl +65 -0
- package/templates/system/specialist-agent.md.tmpl +27 -0
- package/templates/ui-implementation-plan.md +35 -0
- package/templates/ui-review-checklist.md +40 -0
|
@@ -0,0 +1,2641 @@
|
|
|
1
|
+
`gstr` 提供了强大便捷的文本处理组件,组件内置了大量常用的字符串处理方法,比较于 `Golang` 标准库更加全面丰富,可应对绝大部分业务场景。
|
|
2
|
+
|
|
3
|
+
**使用方式**:
|
|
4
|
+
|
|
5
|
+
```go
|
|
6
|
+
import "github.com/gogf/gf/v2/text/gstr"
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
**接口文档**:
|
|
10
|
+
|
|
11
|
+
[https://pkg.go.dev/github.com/gogf/gf/v2/text/gstr](https://pkg.go.dev/github.com/gogf/gf/v2/text/gstr)
|
|
12
|
+
:::tip
|
|
13
|
+
以下常用方法列表,文档更新可能滞后于代码新特性,更多的方法及示例请参考代码文档: [https://pkg.go.dev/github.com/gogf/gf/v2/text/gstr](https://pkg.go.dev/github.com/gogf/gf/v2/text/gstr)
|
|
14
|
+
:::
|
|
15
|
+
## 字符串判断
|
|
16
|
+
|
|
17
|
+
### `IsNumeric`
|
|
18
|
+
|
|
19
|
+
- 说明:`IsNumeric` 验证字符串 `s` 是否为数字。
|
|
20
|
+
|
|
21
|
+
- 格式:
|
|
22
|
+
|
|
23
|
+
```go
|
|
24
|
+
IsNumeric(s string) bool
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- 示例:
|
|
28
|
+
|
|
29
|
+
```go
|
|
30
|
+
func ExampleIsNumeric() {
|
|
31
|
+
fmt.Println(gstr.IsNumeric("88"))
|
|
32
|
+
fmt.Println(gstr.IsNumeric("3.1415926"))
|
|
33
|
+
fmt.Println(gstr.IsNumeric("abc"))
|
|
34
|
+
// Output:
|
|
35
|
+
// true
|
|
36
|
+
// true
|
|
37
|
+
// false
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 字符串长度
|
|
42
|
+
|
|
43
|
+
### `LenRune`
|
|
44
|
+
|
|
45
|
+
- 说明:`LenRune` 返回 `unicode` 字符串长度。
|
|
46
|
+
|
|
47
|
+
- 格式:
|
|
48
|
+
|
|
49
|
+
```go
|
|
50
|
+
LenRune(str string) int
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- 示例:
|
|
54
|
+
|
|
55
|
+
```go
|
|
56
|
+
func ExampleLenRune() {
|
|
57
|
+
var (
|
|
58
|
+
str = `GoFrame框架`
|
|
59
|
+
result = gstr.LenRune(str)
|
|
60
|
+
)
|
|
61
|
+
fmt.Println(result)
|
|
62
|
+
|
|
63
|
+
// Output:
|
|
64
|
+
// 9
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## 字符串创建
|
|
69
|
+
|
|
70
|
+
### `Repeat`
|
|
71
|
+
|
|
72
|
+
- 说明:`Repeat` 返回一个由 `input` 重复 `multiplier` 次后组成的新字符串。
|
|
73
|
+
|
|
74
|
+
- 格式:
|
|
75
|
+
|
|
76
|
+
```go
|
|
77
|
+
Repeat(input string, multiplier int) string
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
- 示例:
|
|
81
|
+
|
|
82
|
+
```go
|
|
83
|
+
func ExampleRepeat() {
|
|
84
|
+
var (
|
|
85
|
+
input = `goframe `
|
|
86
|
+
multiplier = 3
|
|
87
|
+
result = gstr.Repeat(input, multiplier)
|
|
88
|
+
)
|
|
89
|
+
fmt.Println(result)
|
|
90
|
+
|
|
91
|
+
// Output:
|
|
92
|
+
// goframe goframe goframe
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## 大小写转换
|
|
97
|
+
|
|
98
|
+
### `ToLower`
|
|
99
|
+
|
|
100
|
+
- 说明:`ToLower` 将 `s` 中所有 `Unicode` 字符都变为小写并返回其副本。
|
|
101
|
+
|
|
102
|
+
- 格式:
|
|
103
|
+
|
|
104
|
+
```go
|
|
105
|
+
ToLower(s string) string
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- 示例:
|
|
109
|
+
|
|
110
|
+
```go
|
|
111
|
+
func ExampleToLower() {
|
|
112
|
+
var (
|
|
113
|
+
s = `GOFRAME`
|
|
114
|
+
result = gstr.ToLower(s)
|
|
115
|
+
)
|
|
116
|
+
fmt.Println(result)
|
|
117
|
+
|
|
118
|
+
// Output:
|
|
119
|
+
// goframe
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### `ToUpper`
|
|
124
|
+
|
|
125
|
+
- 说明:`ToUpper` 将 `s` 中所有 `Unicode` 字符都变为大写并返回其副本。
|
|
126
|
+
|
|
127
|
+
- 格式:
|
|
128
|
+
|
|
129
|
+
```go
|
|
130
|
+
ToUpper(s string) string
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
- 示例:
|
|
134
|
+
|
|
135
|
+
```go
|
|
136
|
+
func ExampleToUpper() {
|
|
137
|
+
var (
|
|
138
|
+
s = `goframe`
|
|
139
|
+
result = gstr.ToUpper(s)
|
|
140
|
+
)
|
|
141
|
+
fmt.Println(result)
|
|
142
|
+
|
|
143
|
+
// Output:
|
|
144
|
+
// GOFRAME
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### `UcFirst`
|
|
149
|
+
|
|
150
|
+
- 说明:`UcFirst` 将 `s` 中首字符变为大写并返回其副本。
|
|
151
|
+
|
|
152
|
+
- 格式:
|
|
153
|
+
|
|
154
|
+
```go
|
|
155
|
+
UcFirst(s string) string
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- 示例:
|
|
159
|
+
|
|
160
|
+
```go
|
|
161
|
+
func ExampleUcFirst() {
|
|
162
|
+
var (
|
|
163
|
+
s = `hello`
|
|
164
|
+
result = gstr.UcFirst(s)
|
|
165
|
+
)
|
|
166
|
+
fmt.Println(result)
|
|
167
|
+
|
|
168
|
+
// Output:
|
|
169
|
+
// Hello
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### `LcFirst`
|
|
174
|
+
|
|
175
|
+
- 说明: `LcFirst` 将 `s` 中首字符变为小写并返回其副本。
|
|
176
|
+
|
|
177
|
+
- 格式:
|
|
178
|
+
|
|
179
|
+
```go
|
|
180
|
+
LcFirst(s string) string
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
- 示例:
|
|
184
|
+
|
|
185
|
+
```go
|
|
186
|
+
func ExampleLcFirst() {
|
|
187
|
+
var (
|
|
188
|
+
str = `Goframe`
|
|
189
|
+
result = gstr.LcFirst(str)
|
|
190
|
+
)
|
|
191
|
+
fmt.Println(result)
|
|
192
|
+
|
|
193
|
+
// Output:
|
|
194
|
+
// goframe
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### `UcWords`
|
|
199
|
+
|
|
200
|
+
- 说明: `UcWords` 将字符串 `str` 中每个单词的第一个字符变为大写。
|
|
201
|
+
|
|
202
|
+
- 格式:
|
|
203
|
+
|
|
204
|
+
```go
|
|
205
|
+
UcWords(str string) string
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
- 示例:
|
|
209
|
+
|
|
210
|
+
```go
|
|
211
|
+
func ExampleUcWords() {
|
|
212
|
+
var (
|
|
213
|
+
str = `hello world`
|
|
214
|
+
result = gstr.UcWords(str)
|
|
215
|
+
)
|
|
216
|
+
fmt.Println(result)
|
|
217
|
+
|
|
218
|
+
// Output:
|
|
219
|
+
// Hello World
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### `IsLetterLower`
|
|
224
|
+
|
|
225
|
+
- 说明:`IsLetterLower` 验证给定的字符 `b` 是否是小写字符。
|
|
226
|
+
|
|
227
|
+
- 格式:
|
|
228
|
+
|
|
229
|
+
```go
|
|
230
|
+
IsLetterLower(b byte) bool
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
- 示例:
|
|
234
|
+
|
|
235
|
+
```go
|
|
236
|
+
func ExampleIsLetterLower() {
|
|
237
|
+
fmt.Println(gstr.IsLetterLower('a'))
|
|
238
|
+
fmt.Println(gstr.IsLetterLower('A'))
|
|
239
|
+
|
|
240
|
+
// Output:
|
|
241
|
+
// true
|
|
242
|
+
// false
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### `IsLetterUpper`
|
|
247
|
+
|
|
248
|
+
- 说明:`IsLetterUpper` 验证字符 `b` 是否是大写字符。
|
|
249
|
+
|
|
250
|
+
- 格式:
|
|
251
|
+
|
|
252
|
+
```go
|
|
253
|
+
IsLetterUpper(b byte) bool
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
- 示例:
|
|
257
|
+
|
|
258
|
+
```go
|
|
259
|
+
func ExampleIsLetterUpper() {
|
|
260
|
+
fmt.Println(gstr.IsLetterUpper('A'))
|
|
261
|
+
fmt.Println(gstr.IsLetterUpper('a'))
|
|
262
|
+
|
|
263
|
+
// Output:
|
|
264
|
+
// true
|
|
265
|
+
// false
|
|
266
|
+
}
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
## 字符串比较
|
|
270
|
+
|
|
271
|
+
### `Compare`
|
|
272
|
+
|
|
273
|
+
- 说明:`Compare` 返回一个按字典顺序比较两个字符串的整数。 如果 `a == b`,结果为 `0`,如果 `a < b`,结果为 `-1`,如果 `a > b`,结果为 `+1`。
|
|
274
|
+
|
|
275
|
+
- 格式:
|
|
276
|
+
|
|
277
|
+
```go
|
|
278
|
+
Compare(a, b string) int
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
- 示例:
|
|
282
|
+
|
|
283
|
+
```go
|
|
284
|
+
func ExampleCompare() {
|
|
285
|
+
fmt.Println(gstr.Compare("c", "c"))
|
|
286
|
+
fmt.Println(gstr.Compare("a", "b"))
|
|
287
|
+
fmt.Println(gstr.Compare("c", "b"))
|
|
288
|
+
|
|
289
|
+
// Output:
|
|
290
|
+
// 0
|
|
291
|
+
// -1
|
|
292
|
+
// 1
|
|
293
|
+
}
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### `Equal`
|
|
297
|
+
|
|
298
|
+
- 说明: `Equal` 返回 `a` 和 `b` 在不区分大小写的情况下是否相等。
|
|
299
|
+
|
|
300
|
+
- 格式:
|
|
301
|
+
|
|
302
|
+
```go
|
|
303
|
+
Equal(a, b string) bool
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
- 示例:
|
|
307
|
+
|
|
308
|
+
```go
|
|
309
|
+
func ExampleEqual() {
|
|
310
|
+
fmt.Println(gstr.Equal(`A`, `a`))
|
|
311
|
+
fmt.Println(gstr.Equal(`A`, `A`))
|
|
312
|
+
fmt.Println(gstr.Equal(`A`, `B`))
|
|
313
|
+
|
|
314
|
+
// Output:
|
|
315
|
+
// true
|
|
316
|
+
// true
|
|
317
|
+
// false
|
|
318
|
+
}
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
## 切分组合
|
|
322
|
+
|
|
323
|
+
### `Split`
|
|
324
|
+
|
|
325
|
+
- 说明:`Split` 用 `delimiter` 将 `str` 拆分为 `[]string`。
|
|
326
|
+
|
|
327
|
+
- 格式:
|
|
328
|
+
|
|
329
|
+
```go
|
|
330
|
+
Split(str, delimiter string) []string
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
- 示例:
|
|
334
|
+
|
|
335
|
+
```go
|
|
336
|
+
func ExampleSplit() {
|
|
337
|
+
var (
|
|
338
|
+
str = `a|b|c|d`
|
|
339
|
+
delimiter = `|`
|
|
340
|
+
result = gstr.Split(str, delimiter)
|
|
341
|
+
)
|
|
342
|
+
fmt.Printf(`%#v`, result)
|
|
343
|
+
|
|
344
|
+
// Output:
|
|
345
|
+
// []string{"a", "b", "c", "d"}
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
### `SplitAndTrim`
|
|
350
|
+
|
|
351
|
+
- 说明:`SplitAndTrim` 使用 `delimiter` 将 `str` 拆分为 `[]string`,并对 `[]string` 的每个元素调用 `Trim`,并忽略在 `Trim` 之后为空的元素。
|
|
352
|
+
|
|
353
|
+
- 格式:
|
|
354
|
+
|
|
355
|
+
```go
|
|
356
|
+
SplitAndTrim(str, delimiter string, characterMask ...string) []string
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
- 示例:
|
|
360
|
+
|
|
361
|
+
```go
|
|
362
|
+
func ExampleSplitAndTrim() {
|
|
363
|
+
var (
|
|
364
|
+
str = `a|b|||||c|d`
|
|
365
|
+
delimiter = `|`
|
|
366
|
+
result = gstr.SplitAndTrim(str, delimiter)
|
|
367
|
+
)
|
|
368
|
+
fmt.Printf(`%#v`, result)
|
|
369
|
+
|
|
370
|
+
// Output:
|
|
371
|
+
// []string{"a", "b", "c", "d"}
|
|
372
|
+
}
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
### `Join`
|
|
376
|
+
|
|
377
|
+
- 说明: `Join` 将 `array` 中的每一个元素连接并生成一个新的字符串。参数 `sep` 会作为新字符串的分隔符。
|
|
378
|
+
|
|
379
|
+
- 格式:
|
|
380
|
+
|
|
381
|
+
```go
|
|
382
|
+
Join(array []string, sep string) string
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
- 示例:
|
|
386
|
+
|
|
387
|
+
```go
|
|
388
|
+
func ExampleJoin() {
|
|
389
|
+
var (
|
|
390
|
+
array = []string{"goframe", "is", "very", "easy", "to", "use"}
|
|
391
|
+
sep = ` `
|
|
392
|
+
result = gstr.Join(array, sep)
|
|
393
|
+
)
|
|
394
|
+
fmt.Println(result)
|
|
395
|
+
|
|
396
|
+
// Output:
|
|
397
|
+
// goframe is very easy to use
|
|
398
|
+
}
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### `JoinAny`
|
|
402
|
+
|
|
403
|
+
- 说明: `JoinAny` 将 `array` 中的每一个元素连接并生成一个新的字符串。参数 `sep` 会作为新字符串的分隔符。参数 `array` 可以是任意的类型。
|
|
404
|
+
|
|
405
|
+
- 格式:
|
|
406
|
+
|
|
407
|
+
```go
|
|
408
|
+
JoinAny(array interface{}, sep string) string
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
- 示例:
|
|
412
|
+
|
|
413
|
+
```go
|
|
414
|
+
func ExampleJoinAny() {
|
|
415
|
+
var (
|
|
416
|
+
sep = `,`
|
|
417
|
+
arr2 = []int{99, 73, 85, 66}
|
|
418
|
+
result = gstr.JoinAny(arr2, sep)
|
|
419
|
+
)
|
|
420
|
+
fmt.Println(result)
|
|
421
|
+
|
|
422
|
+
// Output:
|
|
423
|
+
// 99,73,85,66
|
|
424
|
+
}
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### `Explode`
|
|
428
|
+
|
|
429
|
+
- 说明: `Explode` 使用分隔符 `delimiter` 字符串 `str` 拆分成 `[]string`
|
|
430
|
+
|
|
431
|
+
- 格式:
|
|
432
|
+
|
|
433
|
+
```go
|
|
434
|
+
Explode(delimiter, str string) []string
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
- 示例:
|
|
438
|
+
|
|
439
|
+
```go
|
|
440
|
+
func ExampleExplode() {
|
|
441
|
+
var (
|
|
442
|
+
str = `Hello World`
|
|
443
|
+
delimiter = " "
|
|
444
|
+
result = gstr.Explode(delimiter, str)
|
|
445
|
+
)
|
|
446
|
+
fmt.Printf(`%#v`, result)
|
|
447
|
+
|
|
448
|
+
// Output:
|
|
449
|
+
// []string{"Hello", "World"}
|
|
450
|
+
}
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
### `Implode`
|
|
454
|
+
|
|
455
|
+
- 说明: `Implode` 使用 `glue` 连接 `pieces` 字符串数组的每一个元素。
|
|
456
|
+
|
|
457
|
+
- 格式:
|
|
458
|
+
|
|
459
|
+
```go
|
|
460
|
+
Implode(glue string, pieces []string) string
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
- 示例:
|
|
464
|
+
|
|
465
|
+
```go
|
|
466
|
+
func ExampleImplode() {
|
|
467
|
+
var (
|
|
468
|
+
pieces = []string{"goframe", "is", "very", "easy", "to", "use"}
|
|
469
|
+
glue = " "
|
|
470
|
+
result = gstr.Implode(glue, pieces)
|
|
471
|
+
)
|
|
472
|
+
fmt.Println(result)
|
|
473
|
+
|
|
474
|
+
// Output:
|
|
475
|
+
// goframe is very easy to use
|
|
476
|
+
}
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
### `ChunkSplit`
|
|
480
|
+
|
|
481
|
+
- 说明:`ChunkSplit` 将字符串拆分为单位为 `chunkLen` 长度更小的每一份,并用 `end` 连接每一份拆分出的字符串。
|
|
482
|
+
|
|
483
|
+
- 格式:
|
|
484
|
+
|
|
485
|
+
```go
|
|
486
|
+
ChunkSplit(body string, chunkLen int, end string) string
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
- 示例:
|
|
490
|
+
|
|
491
|
+
```go
|
|
492
|
+
func ExampleChunkSplit() {
|
|
493
|
+
var (
|
|
494
|
+
body = `1234567890`
|
|
495
|
+
chunkLen = 2
|
|
496
|
+
end = "#"
|
|
497
|
+
result = gstr.ChunkSplit(body, chunkLen, end)
|
|
498
|
+
)
|
|
499
|
+
fmt.Println(result)
|
|
500
|
+
|
|
501
|
+
// Output:
|
|
502
|
+
// 12#34#56#78#90#
|
|
503
|
+
}
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
### `Fields`
|
|
507
|
+
|
|
508
|
+
- 说明: `Fields` 以 `[]string` 的形式返回字符串中的每个单词。
|
|
509
|
+
|
|
510
|
+
- 格式:
|
|
511
|
+
|
|
512
|
+
```go
|
|
513
|
+
Fields(str string) []string
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
- 示例:
|
|
517
|
+
|
|
518
|
+
```go
|
|
519
|
+
func ExampleFields() {
|
|
520
|
+
var (
|
|
521
|
+
str = `Hello World`
|
|
522
|
+
result = gstr.Fields(str)
|
|
523
|
+
)
|
|
524
|
+
fmt.Printf(`%#v`, result)
|
|
525
|
+
|
|
526
|
+
// Output:
|
|
527
|
+
// []string{"Hello", "World"}
|
|
528
|
+
}
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
## 转义处理
|
|
532
|
+
|
|
533
|
+
### `AddSlashes`
|
|
534
|
+
|
|
535
|
+
- 说明: `AddSlashes` 将字符串中的符号前添加转义字符 `'\'`
|
|
536
|
+
|
|
537
|
+
- 格式:
|
|
538
|
+
|
|
539
|
+
```go
|
|
540
|
+
AddSlashes(str string) string
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
- 示例:
|
|
544
|
+
|
|
545
|
+
```go
|
|
546
|
+
func ExampleAddSlashes() {
|
|
547
|
+
var (
|
|
548
|
+
str = `'aa'"bb"cc\r\n\d\t`
|
|
549
|
+
result = gstr.AddSlashes(str)
|
|
550
|
+
)
|
|
551
|
+
|
|
552
|
+
fmt.Println(result)
|
|
553
|
+
|
|
554
|
+
// Output:
|
|
555
|
+
// \'aa\'\"bb\"cc\\r\\n\\d\\t
|
|
556
|
+
}
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
### `StripSlashes`
|
|
560
|
+
|
|
561
|
+
- 说明: `StripSlashes` 去掉字符串 `str` 中的转义字符 `'\'`。
|
|
562
|
+
|
|
563
|
+
- 格式:
|
|
564
|
+
|
|
565
|
+
```go
|
|
566
|
+
StripSlashes(str string) string
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
- 示例:
|
|
570
|
+
|
|
571
|
+
```go
|
|
572
|
+
func ExampleStripSlashes() {
|
|
573
|
+
var (
|
|
574
|
+
str = `C:\\windows\\GoFrame\\test`
|
|
575
|
+
result = gstr.StripSlashes(str)
|
|
576
|
+
)
|
|
577
|
+
fmt.Println(result)
|
|
578
|
+
|
|
579
|
+
// Output:
|
|
580
|
+
// C:\windows\GoFrame\test
|
|
581
|
+
}
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
### `QuoteMeta`
|
|
585
|
+
|
|
586
|
+
- 说明:`QuoteMeta` 为str中' `. \ + * ? [ ^ ] ( $ )` 中的每个字符前添加一个转义字符 `'\'。`
|
|
587
|
+
|
|
588
|
+
- 格式:
|
|
589
|
+
|
|
590
|
+
```go
|
|
591
|
+
QuoteMeta(str string, chars ...string) string
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
- 示例:
|
|
595
|
+
|
|
596
|
+
```go
|
|
597
|
+
func ExampleQuoteMeta() {
|
|
598
|
+
{
|
|
599
|
+
var (
|
|
600
|
+
str = `.\+?[^]()`
|
|
601
|
+
result = gstr.QuoteMeta(str)
|
|
602
|
+
)
|
|
603
|
+
fmt.Println(result)
|
|
604
|
+
}
|
|
605
|
+
{
|
|
606
|
+
var (
|
|
607
|
+
str = `https://goframe.org/pages/viewpage.action?pageId=1114327`
|
|
608
|
+
result = gstr.QuoteMeta(str)
|
|
609
|
+
)
|
|
610
|
+
fmt.Println(result)
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
// Output:
|
|
614
|
+
// \.\\\+\?\[\^\]\(\)
|
|
615
|
+
// https://goframe\.org/pages/viewpage\.action\?pageId=1114327
|
|
616
|
+
|
|
617
|
+
}
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
## 统计计数
|
|
621
|
+
|
|
622
|
+
### `Count`
|
|
623
|
+
|
|
624
|
+
- 说明:`Count` 计算 `substr` 在 `s` 中出现的次数。 如果在 `s` 中没有找到 `substr`,则返回 `0`。
|
|
625
|
+
|
|
626
|
+
- 格式:
|
|
627
|
+
|
|
628
|
+
```go
|
|
629
|
+
Count(s, substr string) int
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
- 示例:
|
|
633
|
+
|
|
634
|
+
```go
|
|
635
|
+
func ExampleCount() {
|
|
636
|
+
var (
|
|
637
|
+
str = `goframe is very, very easy to use`
|
|
638
|
+
substr1 = "goframe"
|
|
639
|
+
substr2 = "very"
|
|
640
|
+
result1 = gstr.Count(str, substr1)
|
|
641
|
+
result2 = gstr.Count(str, substr2)
|
|
642
|
+
)
|
|
643
|
+
fmt.Println(result1)
|
|
644
|
+
fmt.Println(result2)
|
|
645
|
+
|
|
646
|
+
// Output:
|
|
647
|
+
// 1
|
|
648
|
+
// 2
|
|
649
|
+
}
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
### `CountI`
|
|
653
|
+
|
|
654
|
+
- 说明:`Count` 计算 `substr` 在 `s` 中出现的次数,不区分大小写。 如果在 `s` 中没有找到 `substr`,则返回 `0`。
|
|
655
|
+
|
|
656
|
+
- 格式:
|
|
657
|
+
|
|
658
|
+
```go
|
|
659
|
+
CountI(s, substr string) int
|
|
660
|
+
```
|
|
661
|
+
|
|
662
|
+
- 示例:
|
|
663
|
+
|
|
664
|
+
```go
|
|
665
|
+
func ExampleCountI() {
|
|
666
|
+
var (
|
|
667
|
+
str = `goframe is very, very easy to use`
|
|
668
|
+
substr1 = "GOFRAME"
|
|
669
|
+
substr2 = "VERY"
|
|
670
|
+
result1 = gstr.CountI(str, substr1)
|
|
671
|
+
result2 = gstr.CountI(str, substr2)
|
|
672
|
+
)
|
|
673
|
+
fmt.Println(result1)
|
|
674
|
+
fmt.Println(result2)
|
|
675
|
+
|
|
676
|
+
// Output:
|
|
677
|
+
// 1
|
|
678
|
+
// 2
|
|
679
|
+
}
|
|
680
|
+
```
|
|
681
|
+
|
|
682
|
+
### `CountWords`
|
|
683
|
+
|
|
684
|
+
- 说明:`CountWords` 以 `map[string]int` 的形式返回 `str` 中使用的单词的统计信息。
|
|
685
|
+
|
|
686
|
+
- 格式:
|
|
687
|
+
|
|
688
|
+
```go
|
|
689
|
+
CountWords(str string) map[string]int
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
- 示例:
|
|
693
|
+
|
|
694
|
+
```go
|
|
695
|
+
func ExampleCountWords() {
|
|
696
|
+
var (
|
|
697
|
+
str = `goframe is very, very easy to use!`
|
|
698
|
+
result = gstr.CountWords(str)
|
|
699
|
+
)
|
|
700
|
+
fmt.Printf(`%#v`, result)
|
|
701
|
+
|
|
702
|
+
// Output:
|
|
703
|
+
// map[string]int{"easy":1, "goframe":1, "is":1, "to":1, "use!":1, "very":1, "very,":1}
|
|
704
|
+
}
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
### `CountChars`
|
|
708
|
+
|
|
709
|
+
- 说明:`CountChars` 以 `map[string]int` 的形式返回 `str` 中使用的字符的统计信息。 `noSpace` 参数可以控制是否计算空格。
|
|
710
|
+
|
|
711
|
+
- 格式:
|
|
712
|
+
|
|
713
|
+
```go
|
|
714
|
+
CountChars(str string, noSpace ...bool) map[string]int
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
- 示例:
|
|
718
|
+
|
|
719
|
+
```go
|
|
720
|
+
func ExampleCountChars() {
|
|
721
|
+
var (
|
|
722
|
+
str = `goframe`
|
|
723
|
+
result = gstr.CountChars(str)
|
|
724
|
+
)
|
|
725
|
+
fmt.Println(result)
|
|
726
|
+
|
|
727
|
+
// May Output:
|
|
728
|
+
// map[a:1 e:1 f:1 g:1 m:1 o:1 r:1]
|
|
729
|
+
}
|
|
730
|
+
```
|
|
731
|
+
|
|
732
|
+
## 数组处理
|
|
733
|
+
|
|
734
|
+
### `SearchArray`
|
|
735
|
+
|
|
736
|
+
- 说明:`SearchArray` 在 `[]string 'a'` 中区分大小写地搜索字符串 `'s'`,返回其在 `'a'` 中的索引。 如果在 `'a'` 中没有找到 `'s'`,则返回 `-1`。
|
|
737
|
+
|
|
738
|
+
- 格式:
|
|
739
|
+
|
|
740
|
+
```go
|
|
741
|
+
SearchArray(a []string, s string) int
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
- 示例:
|
|
745
|
+
|
|
746
|
+
```go
|
|
747
|
+
func ExampleSearchArray() {
|
|
748
|
+
var (
|
|
749
|
+
array = []string{"goframe", "is", "very", "nice"}
|
|
750
|
+
str = `goframe`
|
|
751
|
+
result = gstr.SearchArray(array, str)
|
|
752
|
+
)
|
|
753
|
+
fmt.Println(result)
|
|
754
|
+
|
|
755
|
+
// Output:
|
|
756
|
+
// 0
|
|
757
|
+
}
|
|
758
|
+
```
|
|
759
|
+
|
|
760
|
+
### `InArray`
|
|
761
|
+
|
|
762
|
+
- 说明:`InArray校验` `[]string 'a'` 中是否有字符串 `' s '`。
|
|
763
|
+
|
|
764
|
+
- 格式:
|
|
765
|
+
|
|
766
|
+
```go
|
|
767
|
+
InArray(a []string, s string) bool
|
|
768
|
+
```
|
|
769
|
+
|
|
770
|
+
- 示例:
|
|
771
|
+
|
|
772
|
+
```go
|
|
773
|
+
func ExampleInArray() {
|
|
774
|
+
var (
|
|
775
|
+
a = []string{"goframe", "is", "very", "easy", "to", "use"}
|
|
776
|
+
s = "goframe"
|
|
777
|
+
result = gstr.InArray(a, s)
|
|
778
|
+
)
|
|
779
|
+
fmt.Println(result)
|
|
780
|
+
|
|
781
|
+
// Output:
|
|
782
|
+
// true
|
|
783
|
+
}
|
|
784
|
+
```
|
|
785
|
+
|
|
786
|
+
### `PrefixArray`
|
|
787
|
+
|
|
788
|
+
- 说明: `PrefixArray` 位 `[]string array` 的每一个字符串添加 `'prefix'` 的前缀。
|
|
789
|
+
|
|
790
|
+
- 格式:
|
|
791
|
+
|
|
792
|
+
```go
|
|
793
|
+
PrefixArray(array []string, prefix string)
|
|
794
|
+
```
|
|
795
|
+
|
|
796
|
+
- 示例:
|
|
797
|
+
|
|
798
|
+
```go
|
|
799
|
+
func ExamplePrefixArray() {
|
|
800
|
+
var (
|
|
801
|
+
strArray = []string{"tom", "lily", "john"}
|
|
802
|
+
)
|
|
803
|
+
|
|
804
|
+
gstr.PrefixArray(strArray, "classA_")
|
|
805
|
+
|
|
806
|
+
fmt.Println(strArray)
|
|
807
|
+
|
|
808
|
+
// Output:
|
|
809
|
+
// [classA_tom classA_lily classA_john]
|
|
810
|
+
}
|
|
811
|
+
```
|
|
812
|
+
|
|
813
|
+
## 命名转换
|
|
814
|
+
|
|
815
|
+
### `CaseCamel`
|
|
816
|
+
|
|
817
|
+
- 说明: `CaseCamel` 将字符串转换为大驼峰形式(首字母大写)。
|
|
818
|
+
|
|
819
|
+
- 格式:
|
|
820
|
+
|
|
821
|
+
```go
|
|
822
|
+
CaseCamel(s string) string
|
|
823
|
+
```
|
|
824
|
+
|
|
825
|
+
- 示例:
|
|
826
|
+
|
|
827
|
+
```go
|
|
828
|
+
func ExampleCaseCamel() {
|
|
829
|
+
var (
|
|
830
|
+
str = `hello world`
|
|
831
|
+
result = gstr.CaseCamel(str)
|
|
832
|
+
)
|
|
833
|
+
fmt.Println(result)
|
|
834
|
+
|
|
835
|
+
// Output:
|
|
836
|
+
// HelloWorld
|
|
837
|
+
}
|
|
838
|
+
```
|
|
839
|
+
|
|
840
|
+
### `CaseCamelLower`
|
|
841
|
+
|
|
842
|
+
- 说明: `CaseCamelLower` 将字符串转换为小驼峰形式(首字母小写)。
|
|
843
|
+
|
|
844
|
+
- 格式:
|
|
845
|
+
|
|
846
|
+
```go
|
|
847
|
+
CaseCamelLower(s string) string
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
- 示例:
|
|
851
|
+
|
|
852
|
+
```go
|
|
853
|
+
func ExampleCaseCamelLower() {
|
|
854
|
+
var (
|
|
855
|
+
str = `hello world`
|
|
856
|
+
result = gstr.CaseCamelLower(str)
|
|
857
|
+
)
|
|
858
|
+
fmt.Println(result)
|
|
859
|
+
|
|
860
|
+
// Output:
|
|
861
|
+
// helloWorld
|
|
862
|
+
}
|
|
863
|
+
```
|
|
864
|
+
|
|
865
|
+
### `CaseSnake`
|
|
866
|
+
|
|
867
|
+
- 说明: `CaseSnake` 将字符串转换中的符号(下划线,空格,点,中横线)用下划线( `_` )替换,并全部转换为小写字母。
|
|
868
|
+
|
|
869
|
+
- 格式:
|
|
870
|
+
|
|
871
|
+
```go
|
|
872
|
+
CaseSnake(s string) string
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
- 示例:
|
|
876
|
+
|
|
877
|
+
```go
|
|
878
|
+
func ExampleCaseSnake() {
|
|
879
|
+
var (
|
|
880
|
+
str = `hello world`
|
|
881
|
+
result = gstr.CaseSnake(str)
|
|
882
|
+
)
|
|
883
|
+
fmt.Println(result)
|
|
884
|
+
|
|
885
|
+
// Output:
|
|
886
|
+
// hello_world
|
|
887
|
+
}
|
|
888
|
+
```
|
|
889
|
+
|
|
890
|
+
### `CaseSnakeScreaming`
|
|
891
|
+
|
|
892
|
+
- 说明: `CaseSnakeScreaming` 把字符串中的符号(下划线,空格,点,中横线),全部替换为下划线 `'_'`,并将所有英文字母转为大写。
|
|
893
|
+
|
|
894
|
+
- 格式:
|
|
895
|
+
|
|
896
|
+
```go
|
|
897
|
+
CaseSnakeScreaming(s string) string
|
|
898
|
+
```
|
|
899
|
+
|
|
900
|
+
- 示例:
|
|
901
|
+
|
|
902
|
+
```go
|
|
903
|
+
func ExampleCaseSnakeScreaming() {
|
|
904
|
+
var (
|
|
905
|
+
str = `hello world`
|
|
906
|
+
result = gstr.CaseSnakeScreaming(str)
|
|
907
|
+
)
|
|
908
|
+
fmt.Println(result)
|
|
909
|
+
|
|
910
|
+
// Output:
|
|
911
|
+
// HELLO_WORLD
|
|
912
|
+
}
|
|
913
|
+
```
|
|
914
|
+
|
|
915
|
+
### `CaseSnakeFirstUpper`
|
|
916
|
+
|
|
917
|
+
- 说明: `CaseSnakeFirstUpper` 将字符串中的字母为大写时,将大写字母转换为小写字母并在其前面增加一个下划线 `'_'`,首字母大写时,只转换为小写,前面不增加下划线 `'_'`。
|
|
918
|
+
|
|
919
|
+
- 格式:
|
|
920
|
+
|
|
921
|
+
```go
|
|
922
|
+
CaseSnakeFirstUpper(word string, underscore ...string) string
|
|
923
|
+
```
|
|
924
|
+
|
|
925
|
+
- 示例:
|
|
926
|
+
|
|
927
|
+
```go
|
|
928
|
+
func ExampleCaseSnakeFirstUpper() {
|
|
929
|
+
var (
|
|
930
|
+
str = `RGBCodeMd5`
|
|
931
|
+
result = gstr.CaseSnakeFirstUpper(str)
|
|
932
|
+
)
|
|
933
|
+
fmt.Println(result)
|
|
934
|
+
|
|
935
|
+
// Output:
|
|
936
|
+
// rgb_code_md5
|
|
937
|
+
}
|
|
938
|
+
```
|
|
939
|
+
|
|
940
|
+
### `CaseKebab`
|
|
941
|
+
|
|
942
|
+
- 说明: `CaseKebab` 将字符串转换中的符号(下划线,空格,点,)用中横线 `'-'` 替换,并全部转换为小写字母。
|
|
943
|
+
|
|
944
|
+
- 格式:
|
|
945
|
+
|
|
946
|
+
```go
|
|
947
|
+
CaseKebab(s string) string
|
|
948
|
+
```
|
|
949
|
+
|
|
950
|
+
- 示例:
|
|
951
|
+
|
|
952
|
+
```go
|
|
953
|
+
func ExampleCaseKebab() {
|
|
954
|
+
var (
|
|
955
|
+
str = `hello world`
|
|
956
|
+
result = gstr.CaseKebab(str)
|
|
957
|
+
)
|
|
958
|
+
fmt.Println(result)
|
|
959
|
+
|
|
960
|
+
// Output:
|
|
961
|
+
// hello-world
|
|
962
|
+
}
|
|
963
|
+
```
|
|
964
|
+
|
|
965
|
+
### `CaseKebabScreaming`
|
|
966
|
+
|
|
967
|
+
- 说明: `CaseKebabScreaming` 将字符串转换中的符号(下划线,空格,点,中横线)用中横线 `'-'` 替换,并全部转换为大写字母。
|
|
968
|
+
|
|
969
|
+
- 格式:
|
|
970
|
+
|
|
971
|
+
```go
|
|
972
|
+
CaseKebabScreaming(s string) string
|
|
973
|
+
```
|
|
974
|
+
|
|
975
|
+
- 示例:
|
|
976
|
+
|
|
977
|
+
```go
|
|
978
|
+
func ExampleCaseKebabScreaming() {
|
|
979
|
+
var (
|
|
980
|
+
str = `hello world`
|
|
981
|
+
result = gstr.CaseKebabScreaming(str)
|
|
982
|
+
)
|
|
983
|
+
fmt.Println(result)
|
|
984
|
+
|
|
985
|
+
// Output:
|
|
986
|
+
// HELLO-WORLD
|
|
987
|
+
}
|
|
988
|
+
```
|
|
989
|
+
|
|
990
|
+
### `CaseDelimited`
|
|
991
|
+
|
|
992
|
+
- 说明: `CaseDelimited` 将字符串转换中的符号进行替换。
|
|
993
|
+
|
|
994
|
+
- 格式:
|
|
995
|
+
|
|
996
|
+
```go
|
|
997
|
+
CaseDelimited(s string, del byte) string
|
|
998
|
+
```
|
|
999
|
+
|
|
1000
|
+
- 示例:
|
|
1001
|
+
|
|
1002
|
+
```go
|
|
1003
|
+
func ExampleCaseDelimited() {
|
|
1004
|
+
var (
|
|
1005
|
+
str = `hello world`
|
|
1006
|
+
del = byte('-')
|
|
1007
|
+
result = gstr.CaseDelimited(str, del)
|
|
1008
|
+
)
|
|
1009
|
+
fmt.Println(result)
|
|
1010
|
+
|
|
1011
|
+
// Output:
|
|
1012
|
+
// hello-world
|
|
1013
|
+
}
|
|
1014
|
+
```
|
|
1015
|
+
|
|
1016
|
+
### `CaseDelimitedScreaming`
|
|
1017
|
+
|
|
1018
|
+
- 说明: `CaseDelimitedScreaming` 将字符串中的符号(空格,下划线,点,中横线)用第二个参数进行替换,该函数第二个参数为替换的字符,第三个参数为大小写转换, `true` 为全部转换大写字母, `false` 为全部转为小写字母。
|
|
1019
|
+
|
|
1020
|
+
- 格式:
|
|
1021
|
+
|
|
1022
|
+
```go
|
|
1023
|
+
CaseDelimitedScreaming(s string, del uint8, screaming bool) string
|
|
1024
|
+
```
|
|
1025
|
+
|
|
1026
|
+
- 示例:
|
|
1027
|
+
|
|
1028
|
+
```go
|
|
1029
|
+
func ExampleCaseDelimitedScreaming() {
|
|
1030
|
+
{
|
|
1031
|
+
var (
|
|
1032
|
+
str = `hello world`
|
|
1033
|
+
del = byte('-')
|
|
1034
|
+
result = gstr.CaseDelimitedScreaming(str, del, true)
|
|
1035
|
+
)
|
|
1036
|
+
fmt.Println(result)
|
|
1037
|
+
}
|
|
1038
|
+
{
|
|
1039
|
+
var (
|
|
1040
|
+
str = `hello world`
|
|
1041
|
+
del = byte('-')
|
|
1042
|
+
result = gstr.CaseDelimitedScreaming(str, del, false)
|
|
1043
|
+
)
|
|
1044
|
+
fmt.Println(result)
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
// Output:
|
|
1048
|
+
// HELLO-WORLD
|
|
1049
|
+
// hello-world
|
|
1050
|
+
}
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1053
|
+
## 包含判断
|
|
1054
|
+
|
|
1055
|
+
### `Contains`
|
|
1056
|
+
|
|
1057
|
+
- 说明: `Contains` 返回字符串 `str` 是否包含子字符串 `substr`,区分大小写。
|
|
1058
|
+
|
|
1059
|
+
- 格式:
|
|
1060
|
+
|
|
1061
|
+
```go
|
|
1062
|
+
Contains(str, substr string) bool
|
|
1063
|
+
```
|
|
1064
|
+
|
|
1065
|
+
- 示例:
|
|
1066
|
+
|
|
1067
|
+
```go
|
|
1068
|
+
func ExampleContains() {
|
|
1069
|
+
{
|
|
1070
|
+
var (
|
|
1071
|
+
str = `Hello World`
|
|
1072
|
+
substr = `Hello`
|
|
1073
|
+
result = gstr.Contains(str, substr)
|
|
1074
|
+
)
|
|
1075
|
+
fmt.Println(result)
|
|
1076
|
+
}
|
|
1077
|
+
{
|
|
1078
|
+
var (
|
|
1079
|
+
str = `Hello World`
|
|
1080
|
+
substr = `hello`
|
|
1081
|
+
result = gstr.Contains(str, substr)
|
|
1082
|
+
)
|
|
1083
|
+
fmt.Println(result)
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
// Output:
|
|
1087
|
+
// true
|
|
1088
|
+
// false
|
|
1089
|
+
}
|
|
1090
|
+
```
|
|
1091
|
+
|
|
1092
|
+
### `ContainsI`
|
|
1093
|
+
|
|
1094
|
+
- 说明:`ContainsI` 校验 `substr` 是否在 `str` 中,不区分大小写。
|
|
1095
|
+
|
|
1096
|
+
- 格式:
|
|
1097
|
+
|
|
1098
|
+
```go
|
|
1099
|
+
ContainsI(str, substr string) bool
|
|
1100
|
+
```
|
|
1101
|
+
|
|
1102
|
+
- 示例:
|
|
1103
|
+
|
|
1104
|
+
```go
|
|
1105
|
+
func ExampleContainsI() {
|
|
1106
|
+
var (
|
|
1107
|
+
str = `Hello World`
|
|
1108
|
+
substr = "hello"
|
|
1109
|
+
result1 = gstr.Contains(str, substr)
|
|
1110
|
+
result2 = gstr.ContainsI(str, substr)
|
|
1111
|
+
)
|
|
1112
|
+
fmt.Println(result1)
|
|
1113
|
+
fmt.Println(result2)
|
|
1114
|
+
|
|
1115
|
+
// Output:
|
|
1116
|
+
// false
|
|
1117
|
+
// true
|
|
1118
|
+
}
|
|
1119
|
+
```
|
|
1120
|
+
|
|
1121
|
+
### `ContainsAny`
|
|
1122
|
+
|
|
1123
|
+
- 说明:`ContainsAny` 校验 `s` 中是否包含 `chars`。
|
|
1124
|
+
|
|
1125
|
+
- 格式:
|
|
1126
|
+
|
|
1127
|
+
```go
|
|
1128
|
+
ContainsAny(s, chars string) bool
|
|
1129
|
+
```
|
|
1130
|
+
|
|
1131
|
+
- 示例:
|
|
1132
|
+
|
|
1133
|
+
```go
|
|
1134
|
+
func ExampleContainsAny() {
|
|
1135
|
+
{
|
|
1136
|
+
var (
|
|
1137
|
+
s = `goframe`
|
|
1138
|
+
chars = "g"
|
|
1139
|
+
result = gstr.ContainsAny(s, chars)
|
|
1140
|
+
)
|
|
1141
|
+
fmt.Println(result)
|
|
1142
|
+
}
|
|
1143
|
+
{
|
|
1144
|
+
var (
|
|
1145
|
+
s = `goframe`
|
|
1146
|
+
chars = "G"
|
|
1147
|
+
result = gstr.ContainsAny(s, chars)
|
|
1148
|
+
)
|
|
1149
|
+
fmt.Println(result)
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
// Output:
|
|
1153
|
+
// true
|
|
1154
|
+
// false
|
|
1155
|
+
}
|
|
1156
|
+
```
|
|
1157
|
+
|
|
1158
|
+
## 字符串转换
|
|
1159
|
+
|
|
1160
|
+
### `Chr`
|
|
1161
|
+
|
|
1162
|
+
- 说明:`Chr` 返回一个数字 `0-255` 对应的 `ascii` 字符串。
|
|
1163
|
+
|
|
1164
|
+
- 格式:
|
|
1165
|
+
|
|
1166
|
+
```go
|
|
1167
|
+
Chr(ascii int) string
|
|
1168
|
+
```
|
|
1169
|
+
|
|
1170
|
+
- 示例:
|
|
1171
|
+
|
|
1172
|
+
```go
|
|
1173
|
+
func ExampleChr() {
|
|
1174
|
+
var (
|
|
1175
|
+
ascii = 65 // A
|
|
1176
|
+
result = gstr.Chr(ascii)
|
|
1177
|
+
)
|
|
1178
|
+
fmt.Println(result)
|
|
1179
|
+
|
|
1180
|
+
// Output:
|
|
1181
|
+
// A
|
|
1182
|
+
}
|
|
1183
|
+
```
|
|
1184
|
+
|
|
1185
|
+
### `Ord`
|
|
1186
|
+
|
|
1187
|
+
- 说明:`Ord` 将字符串的第一个字节转换为 `0-255` 之间的值。
|
|
1188
|
+
|
|
1189
|
+
- 格式:
|
|
1190
|
+
|
|
1191
|
+
```go
|
|
1192
|
+
Ord(char string) int
|
|
1193
|
+
```
|
|
1194
|
+
|
|
1195
|
+
- 示例:
|
|
1196
|
+
|
|
1197
|
+
```go
|
|
1198
|
+
func ExampleOrd() {
|
|
1199
|
+
var (
|
|
1200
|
+
str = `goframe`
|
|
1201
|
+
result = gstr.Ord(str)
|
|
1202
|
+
)
|
|
1203
|
+
|
|
1204
|
+
fmt.Println(result)
|
|
1205
|
+
|
|
1206
|
+
// Output:
|
|
1207
|
+
// 103
|
|
1208
|
+
}
|
|
1209
|
+
```
|
|
1210
|
+
|
|
1211
|
+
### `OctStr`
|
|
1212
|
+
|
|
1213
|
+
- 说明:`OctStr` 将字符串 `str` 中的八进制字符串转换为其原始字符串。
|
|
1214
|
+
|
|
1215
|
+
- 格式:
|
|
1216
|
+
|
|
1217
|
+
```go
|
|
1218
|
+
OctStr(str string) string
|
|
1219
|
+
```
|
|
1220
|
+
|
|
1221
|
+
- 示例:
|
|
1222
|
+
|
|
1223
|
+
```go
|
|
1224
|
+
func ExampleOctStr() {
|
|
1225
|
+
var (
|
|
1226
|
+
str = `\346\200\241`
|
|
1227
|
+
result = gstr.OctStr(str)
|
|
1228
|
+
)
|
|
1229
|
+
fmt.Println(result)
|
|
1230
|
+
|
|
1231
|
+
// Output:
|
|
1232
|
+
// 怡
|
|
1233
|
+
}
|
|
1234
|
+
```
|
|
1235
|
+
|
|
1236
|
+
### `Reverse`
|
|
1237
|
+
|
|
1238
|
+
- 说明:`Reverse` 返回 `str` 的反转字符串。
|
|
1239
|
+
|
|
1240
|
+
- 格式:
|
|
1241
|
+
|
|
1242
|
+
```go
|
|
1243
|
+
Reverse(str string) string
|
|
1244
|
+
```
|
|
1245
|
+
|
|
1246
|
+
- 示例:
|
|
1247
|
+
|
|
1248
|
+
```go
|
|
1249
|
+
func ExampleReverse() {
|
|
1250
|
+
var (
|
|
1251
|
+
str = `123456`
|
|
1252
|
+
result = gstr.Reverse(str)
|
|
1253
|
+
)
|
|
1254
|
+
fmt.Println(result)
|
|
1255
|
+
|
|
1256
|
+
// Output:
|
|
1257
|
+
// 654321
|
|
1258
|
+
}
|
|
1259
|
+
```
|
|
1260
|
+
|
|
1261
|
+
### `NumberFormat`
|
|
1262
|
+
|
|
1263
|
+
- 说明:`NumberFormat` 以千位分组来格式化数字。
|
|
1264
|
+
|
|
1265
|
+
- 参数 `decimal` 设置小数点的个数。
|
|
1266
|
+
- 参数 `decPoint` 设置小数点的分隔符。
|
|
1267
|
+
- 参数 `thousand` 设置千位分隔符。
|
|
1268
|
+
- 格式:
|
|
1269
|
+
|
|
1270
|
+
```go
|
|
1271
|
+
NumberFormat(number float64, decimals int, decPoint, thousandsSep string) string
|
|
1272
|
+
```
|
|
1273
|
+
|
|
1274
|
+
- 示例:
|
|
1275
|
+
|
|
1276
|
+
```go
|
|
1277
|
+
func ExampleNumberFormat() {
|
|
1278
|
+
var (
|
|
1279
|
+
number float64 = 123456
|
|
1280
|
+
decimals = 2
|
|
1281
|
+
decPoint = "."
|
|
1282
|
+
thousandsSep = ","
|
|
1283
|
+
result = gstr.NumberFormat(number, decimals, decPoint, thousandsSep)
|
|
1284
|
+
)
|
|
1285
|
+
fmt.Println(result)
|
|
1286
|
+
|
|
1287
|
+
// Output:
|
|
1288
|
+
// 123,456.00
|
|
1289
|
+
}
|
|
1290
|
+
```
|
|
1291
|
+
|
|
1292
|
+
### `Shuffle`
|
|
1293
|
+
|
|
1294
|
+
- 说明:`Shuffle` 返回将 `str` 随机打散后的字符串。
|
|
1295
|
+
|
|
1296
|
+
- 格式:
|
|
1297
|
+
|
|
1298
|
+
```go
|
|
1299
|
+
Shuffle(str string) string
|
|
1300
|
+
```
|
|
1301
|
+
|
|
1302
|
+
- 示例:
|
|
1303
|
+
|
|
1304
|
+
```go
|
|
1305
|
+
func ExampleShuffle() {
|
|
1306
|
+
var (
|
|
1307
|
+
str = `123456`
|
|
1308
|
+
result = gstr.Shuffle(str)
|
|
1309
|
+
)
|
|
1310
|
+
fmt.Println(result)
|
|
1311
|
+
|
|
1312
|
+
// May Output:
|
|
1313
|
+
// 563214
|
|
1314
|
+
}
|
|
1315
|
+
```
|
|
1316
|
+
|
|
1317
|
+
### `HideStr`
|
|
1318
|
+
|
|
1319
|
+
- 说明: `HideStr` 将字符串 `str` 从中间字符开始,百分比 `percent` 的字符转换成 `hide` 字符串。
|
|
1320
|
+
|
|
1321
|
+
- 格式:
|
|
1322
|
+
|
|
1323
|
+
```go
|
|
1324
|
+
HideStr(str string, percent int, hide string) string
|
|
1325
|
+
```
|
|
1326
|
+
|
|
1327
|
+
- 示例:
|
|
1328
|
+
|
|
1329
|
+
```go
|
|
1330
|
+
func ExampleHideStr() {
|
|
1331
|
+
var (
|
|
1332
|
+
str = `13800138000`
|
|
1333
|
+
percent = 40
|
|
1334
|
+
hide = `*`
|
|
1335
|
+
result = gstr.HideStr(str, percent, hide)
|
|
1336
|
+
)
|
|
1337
|
+
fmt.Println(result)
|
|
1338
|
+
|
|
1339
|
+
// Output:
|
|
1340
|
+
// 138****8000
|
|
1341
|
+
}
|
|
1342
|
+
```
|
|
1343
|
+
|
|
1344
|
+
### `Nl2Br`
|
|
1345
|
+
|
|
1346
|
+
- 说明:`Nl2Br` 在字符串中的所有换行符之前插入 `HTML` 换行符 `(' br ' |<br />): \n\r, \r\n, \r, \n`。
|
|
1347
|
+
|
|
1348
|
+
- 格式:
|
|
1349
|
+
|
|
1350
|
+
```go
|
|
1351
|
+
Nl2Br(str string, isXhtml ...bool) string
|
|
1352
|
+
```
|
|
1353
|
+
|
|
1354
|
+
- 示例:
|
|
1355
|
+
|
|
1356
|
+
```go
|
|
1357
|
+
func ExampleNl2Br() {
|
|
1358
|
+
var (
|
|
1359
|
+
str = `goframe
|
|
1360
|
+
is
|
|
1361
|
+
very
|
|
1362
|
+
easy
|
|
1363
|
+
to
|
|
1364
|
+
use`
|
|
1365
|
+
result = gstr.Nl2Br(str)
|
|
1366
|
+
)
|
|
1367
|
+
|
|
1368
|
+
fmt.Println(result)
|
|
1369
|
+
|
|
1370
|
+
// Output:
|
|
1371
|
+
// goframe<br>is<br>very<br>easy<br>to<br>use
|
|
1372
|
+
}
|
|
1373
|
+
```
|
|
1374
|
+
|
|
1375
|
+
### `WordWrap`
|
|
1376
|
+
|
|
1377
|
+
- 说明: `WordWrap` 使用换行符将 `str` 换行到给定字符数(不会切分单词)。
|
|
1378
|
+
|
|
1379
|
+
- 格式:
|
|
1380
|
+
|
|
1381
|
+
```go
|
|
1382
|
+
WordWrap(str string, width int, br string) string
|
|
1383
|
+
```
|
|
1384
|
+
|
|
1385
|
+
- 示例:
|
|
1386
|
+
|
|
1387
|
+
```go
|
|
1388
|
+
func ExampleWordWrap() {
|
|
1389
|
+
{
|
|
1390
|
+
var (
|
|
1391
|
+
str = `A very long woooooooooooooooooord. and something`
|
|
1392
|
+
width = 8
|
|
1393
|
+
br = "\n"
|
|
1394
|
+
result = gstr.WordWrap(str, width, br)
|
|
1395
|
+
)
|
|
1396
|
+
fmt.Println(result)
|
|
1397
|
+
}
|
|
1398
|
+
{
|
|
1399
|
+
var (
|
|
1400
|
+
str = `The quick brown fox jumped over the lazy dog.`
|
|
1401
|
+
width = 20
|
|
1402
|
+
br = "<br />\n"
|
|
1403
|
+
result = gstr.WordWrap(str, width, br)
|
|
1404
|
+
)
|
|
1405
|
+
fmt.Printf("%v", result)
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
// Output:
|
|
1409
|
+
// A very
|
|
1410
|
+
// long
|
|
1411
|
+
// woooooooooooooooooord.
|
|
1412
|
+
// and
|
|
1413
|
+
// something
|
|
1414
|
+
// The quick brown fox<br />
|
|
1415
|
+
// jumped over the lazy<br />
|
|
1416
|
+
// dog.
|
|
1417
|
+
}
|
|
1418
|
+
```
|
|
1419
|
+
|
|
1420
|
+
## 域名处理
|
|
1421
|
+
|
|
1422
|
+
### `IsSubDomain`
|
|
1423
|
+
|
|
1424
|
+
- 说明:`IsSubDomain` 校验 `subDomain` 是否为 `mainDomain` 的子域名。 支持 `mainDomain` 中的 `'*'`。
|
|
1425
|
+
|
|
1426
|
+
- 格式:
|
|
1427
|
+
|
|
1428
|
+
```go
|
|
1429
|
+
IsSubDomain(subDomain string, mainDomain string) bool
|
|
1430
|
+
```
|
|
1431
|
+
|
|
1432
|
+
- 示例:
|
|
1433
|
+
|
|
1434
|
+
```go
|
|
1435
|
+
func ExampleIsSubDomain() {
|
|
1436
|
+
var (
|
|
1437
|
+
subDomain = `s.goframe.org`
|
|
1438
|
+
mainDomain = `goframe.org`
|
|
1439
|
+
result = gstr.IsSubDomain(subDomain, mainDomain)
|
|
1440
|
+
)
|
|
1441
|
+
fmt.Println(result)
|
|
1442
|
+
|
|
1443
|
+
// Output:
|
|
1444
|
+
// true
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
```
|
|
1448
|
+
|
|
1449
|
+
## 参数解析
|
|
1450
|
+
|
|
1451
|
+
### `Parse`
|
|
1452
|
+
|
|
1453
|
+
- 说明: `Parse` 解析字符串并以 `map[string]interface{}` 类型返回。
|
|
1454
|
+
|
|
1455
|
+
- 格式:
|
|
1456
|
+
|
|
1457
|
+
```go
|
|
1458
|
+
Parse(s string) (result map[string]interface{}, err error)
|
|
1459
|
+
```
|
|
1460
|
+
|
|
1461
|
+
- 示例:
|
|
1462
|
+
|
|
1463
|
+
```go
|
|
1464
|
+
func ExampleParse() {
|
|
1465
|
+
{
|
|
1466
|
+
var (
|
|
1467
|
+
str = `v1=m&v2=n`
|
|
1468
|
+
result, _ = gstr.Parse(str)
|
|
1469
|
+
)
|
|
1470
|
+
fmt.Println(result)
|
|
1471
|
+
}
|
|
1472
|
+
{
|
|
1473
|
+
var (
|
|
1474
|
+
str = `v[a][a]=m&v[a][b]=n`
|
|
1475
|
+
result, _ = gstr.Parse(str)
|
|
1476
|
+
)
|
|
1477
|
+
fmt.Println(result)
|
|
1478
|
+
}
|
|
1479
|
+
{
|
|
1480
|
+
// The form of nested Slice is not yet supported.
|
|
1481
|
+
var str = `v[][]=m&v[][]=n`
|
|
1482
|
+
result, err := gstr.Parse(str)
|
|
1483
|
+
if err != nil {
|
|
1484
|
+
panic(err)
|
|
1485
|
+
}
|
|
1486
|
+
fmt.Println(result)
|
|
1487
|
+
}
|
|
1488
|
+
{
|
|
1489
|
+
// This will produce an error.
|
|
1490
|
+
var str = `v=m&v[a]=n`
|
|
1491
|
+
result, err := gstr.Parse(str)
|
|
1492
|
+
if err != nil {
|
|
1493
|
+
println(err)
|
|
1494
|
+
}
|
|
1495
|
+
fmt.Println(result)
|
|
1496
|
+
}
|
|
1497
|
+
{
|
|
1498
|
+
var (
|
|
1499
|
+
str = `a .[[b=c`
|
|
1500
|
+
result, _ = gstr.Parse(str)
|
|
1501
|
+
)
|
|
1502
|
+
fmt.Println(result)
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
// May Output:
|
|
1506
|
+
// map[v1:m v2:n]
|
|
1507
|
+
// map[v:map[a:map[a:m b:n]]]
|
|
1508
|
+
// map[v:map[]]
|
|
1509
|
+
// Error: expected type 'map[string]interface{}' for key 'v', but got 'string'
|
|
1510
|
+
// map[]
|
|
1511
|
+
// map[a___[b:c]
|
|
1512
|
+
}
|
|
1513
|
+
```
|
|
1514
|
+
|
|
1515
|
+
## 位置查找
|
|
1516
|
+
|
|
1517
|
+
### `Pos`
|
|
1518
|
+
|
|
1519
|
+
- 说明:`Pos` 返回 `needle` 在 `haystack` 中第一次出现的位置,区分大小写。 如果没有找到,则返回-1。
|
|
1520
|
+
|
|
1521
|
+
- 格式:
|
|
1522
|
+
|
|
1523
|
+
```go
|
|
1524
|
+
Pos(haystack, needle string, startOffset ...int) int
|
|
1525
|
+
```
|
|
1526
|
+
|
|
1527
|
+
- 示例:
|
|
1528
|
+
|
|
1529
|
+
```go
|
|
1530
|
+
func ExamplePos() {
|
|
1531
|
+
var (
|
|
1532
|
+
haystack = `Hello World`
|
|
1533
|
+
needle = `World`
|
|
1534
|
+
result = gstr.Pos(haystack, needle)
|
|
1535
|
+
)
|
|
1536
|
+
fmt.Println(result)
|
|
1537
|
+
|
|
1538
|
+
// Output:
|
|
1539
|
+
// 6
|
|
1540
|
+
}
|
|
1541
|
+
```
|
|
1542
|
+
|
|
1543
|
+
### `PosRune`
|
|
1544
|
+
|
|
1545
|
+
- 说明: `PosRune` 的作用于函数 `Pos` 相似,但支持 `haystack` 和 `needle` 为 `unicode` 字符串。
|
|
1546
|
+
|
|
1547
|
+
- 格式:
|
|
1548
|
+
|
|
1549
|
+
```go
|
|
1550
|
+
PosRune(haystack, needle string, startOffset ...int) int
|
|
1551
|
+
```
|
|
1552
|
+
|
|
1553
|
+
- 示例:
|
|
1554
|
+
|
|
1555
|
+
```go
|
|
1556
|
+
func ExamplePosRune() {
|
|
1557
|
+
var (
|
|
1558
|
+
haystack = `GoFrame是一款模块化、高性能、企业级的Go基础开发框架`
|
|
1559
|
+
needle = `Go`
|
|
1560
|
+
posI = gstr.PosRune(haystack, needle)
|
|
1561
|
+
posR = gstr.PosRRune(haystack, needle)
|
|
1562
|
+
)
|
|
1563
|
+
fmt.Println(posI)
|
|
1564
|
+
fmt.Println(posR)
|
|
1565
|
+
|
|
1566
|
+
// Output:
|
|
1567
|
+
// 0
|
|
1568
|
+
// 22
|
|
1569
|
+
}
|
|
1570
|
+
```
|
|
1571
|
+
|
|
1572
|
+
### `PosI`
|
|
1573
|
+
|
|
1574
|
+
- 说明:`PosI` 返回 `needle` 在 `haystack` 中第一次出现的位置,不区分大小写。 如果没有找到,则返回-1。
|
|
1575
|
+
|
|
1576
|
+
- 格式:
|
|
1577
|
+
|
|
1578
|
+
```go
|
|
1579
|
+
PosI(haystack, needle string, startOffset ...int) int
|
|
1580
|
+
```
|
|
1581
|
+
|
|
1582
|
+
- 示例:
|
|
1583
|
+
|
|
1584
|
+
```go
|
|
1585
|
+
func ExamplePosI() {
|
|
1586
|
+
var (
|
|
1587
|
+
haystack = `goframe is very, very easy to use`
|
|
1588
|
+
needle = `very`
|
|
1589
|
+
posI = gstr.PosI(haystack, needle)
|
|
1590
|
+
posR = gstr.PosR(haystack, needle)
|
|
1591
|
+
)
|
|
1592
|
+
fmt.Println(posI)
|
|
1593
|
+
fmt.Println(posR)
|
|
1594
|
+
|
|
1595
|
+
// Output:
|
|
1596
|
+
// 11
|
|
1597
|
+
// 17
|
|
1598
|
+
}
|
|
1599
|
+
```
|
|
1600
|
+
|
|
1601
|
+
### `PosRuneI`
|
|
1602
|
+
|
|
1603
|
+
- 说明: `PosRuneI` 的作用于函数 `PosI` 相似,但支持 `haystack` 和 `needle` 为 `unicode` 字符串。
|
|
1604
|
+
|
|
1605
|
+
- 格式:
|
|
1606
|
+
|
|
1607
|
+
```go
|
|
1608
|
+
PosIRune(haystack, needle string, startOffset ...int) int
|
|
1609
|
+
```
|
|
1610
|
+
|
|
1611
|
+
- 示例:
|
|
1612
|
+
|
|
1613
|
+
```go
|
|
1614
|
+
func ExamplePosIRune() {
|
|
1615
|
+
{
|
|
1616
|
+
var (
|
|
1617
|
+
haystack = `GoFrame是一款模块化、高性能、企业级的Go基础开发框架`
|
|
1618
|
+
needle = `高性能`
|
|
1619
|
+
startOffset = 10
|
|
1620
|
+
result = gstr.PosIRune(haystack, needle, startOffset)
|
|
1621
|
+
)
|
|
1622
|
+
fmt.Println(result)
|
|
1623
|
+
}
|
|
1624
|
+
{
|
|
1625
|
+
var (
|
|
1626
|
+
haystack = `GoFrame是一款模块化、高性能、企业级的Go基础开发框架`
|
|
1627
|
+
needle = `高性能`
|
|
1628
|
+
startOffset = 30
|
|
1629
|
+
result = gstr.PosIRune(haystack, needle, startOffset)
|
|
1630
|
+
)
|
|
1631
|
+
fmt.Println(result)
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
// Output:
|
|
1635
|
+
// 14
|
|
1636
|
+
// -1
|
|
1637
|
+
}
|
|
1638
|
+
```
|
|
1639
|
+
|
|
1640
|
+
### `PosR`
|
|
1641
|
+
|
|
1642
|
+
- 说明:`PosR` 返回 `needle` 在 `haystack` 中最后一次出现的位置,区分大小写。 如果没有找到,则返回-1。
|
|
1643
|
+
|
|
1644
|
+
- 格式:
|
|
1645
|
+
|
|
1646
|
+
```go
|
|
1647
|
+
PosR(haystack, needle string, startOffset ...int) int
|
|
1648
|
+
```
|
|
1649
|
+
|
|
1650
|
+
- 示例:
|
|
1651
|
+
|
|
1652
|
+
```go
|
|
1653
|
+
func ExamplePosR() {
|
|
1654
|
+
var (
|
|
1655
|
+
haystack = `goframe is very, very easy to use`
|
|
1656
|
+
needle = `very`
|
|
1657
|
+
posI = gstr.PosI(haystack, needle)
|
|
1658
|
+
posR = gstr.PosR(haystack, needle)
|
|
1659
|
+
)
|
|
1660
|
+
fmt.Println(posI)
|
|
1661
|
+
fmt.Println(posR)
|
|
1662
|
+
|
|
1663
|
+
// Output:
|
|
1664
|
+
// 11
|
|
1665
|
+
// 17
|
|
1666
|
+
}
|
|
1667
|
+
```
|
|
1668
|
+
|
|
1669
|
+
### `PosRuneR`
|
|
1670
|
+
|
|
1671
|
+
- 说明: `PosRuneR` 的作用于函数 `PosR` 相似,但支持 `haystack` 和 `needle` 为 `unicode` 字符串。
|
|
1672
|
+
|
|
1673
|
+
- 格式:
|
|
1674
|
+
|
|
1675
|
+
```go
|
|
1676
|
+
PosRRune(haystack, needle string, startOffset ...int) int
|
|
1677
|
+
```
|
|
1678
|
+
|
|
1679
|
+
- 示例:
|
|
1680
|
+
|
|
1681
|
+
```go
|
|
1682
|
+
func ExamplePosRRune() {
|
|
1683
|
+
var (
|
|
1684
|
+
haystack = `GoFrame是一款模块化、高性能、企业级的Go基础开发框架`
|
|
1685
|
+
needle = `Go`
|
|
1686
|
+
posI = gstr.PosIRune(haystack, needle)
|
|
1687
|
+
posR = gstr.PosRRune(haystack, needle)
|
|
1688
|
+
)
|
|
1689
|
+
fmt.Println(posI)
|
|
1690
|
+
fmt.Println(posR)
|
|
1691
|
+
|
|
1692
|
+
// Output:
|
|
1693
|
+
// 0
|
|
1694
|
+
// 22
|
|
1695
|
+
}
|
|
1696
|
+
```
|
|
1697
|
+
|
|
1698
|
+
### `PosRI`
|
|
1699
|
+
|
|
1700
|
+
- 说明:`PosRI` 返回 `needle` 在 `haystack` 中最后一次出现的位置,不区分大小写。 如果没有找到,则返回-1。
|
|
1701
|
+
|
|
1702
|
+
- 格式:
|
|
1703
|
+
|
|
1704
|
+
```go
|
|
1705
|
+
PosRI(haystack, needle string, startOffset ...int) int
|
|
1706
|
+
```
|
|
1707
|
+
|
|
1708
|
+
- 示例:
|
|
1709
|
+
|
|
1710
|
+
```go
|
|
1711
|
+
func ExamplePosRI() {
|
|
1712
|
+
var (
|
|
1713
|
+
haystack = `goframe is very, very easy to use`
|
|
1714
|
+
needle = `VERY`
|
|
1715
|
+
posI = gstr.PosI(haystack, needle)
|
|
1716
|
+
posR = gstr.PosRI(haystack, needle)
|
|
1717
|
+
)
|
|
1718
|
+
fmt.Println(posI)
|
|
1719
|
+
fmt.Println(posR)
|
|
1720
|
+
|
|
1721
|
+
// Output:
|
|
1722
|
+
// 11
|
|
1723
|
+
// 17
|
|
1724
|
+
}
|
|
1725
|
+
```
|
|
1726
|
+
|
|
1727
|
+
### `PosRIRune`
|
|
1728
|
+
|
|
1729
|
+
- 说明:`PosRIRune`的作用于函数`PosRI`相似,但支持 `haystack` 和 `needle` 为 `unicode` 字符串。
|
|
1730
|
+
|
|
1731
|
+
- 格式:
|
|
1732
|
+
|
|
1733
|
+
```go
|
|
1734
|
+
PosRIRune(haystack, needle string, startOffset ...int) int
|
|
1735
|
+
```
|
|
1736
|
+
|
|
1737
|
+
- 示例:
|
|
1738
|
+
|
|
1739
|
+
```go
|
|
1740
|
+
func ExamplePosRIRune() {
|
|
1741
|
+
var (
|
|
1742
|
+
haystack = `GoFrame是一款模块化、高性能、企业级的Go基础开发框架`
|
|
1743
|
+
needle = `GO`
|
|
1744
|
+
posI = gstr.PosIRune(haystack, needle)
|
|
1745
|
+
posR = gstr.PosRIRune(haystack, needle)
|
|
1746
|
+
)
|
|
1747
|
+
fmt.Println(posI)
|
|
1748
|
+
fmt.Println(posR)
|
|
1749
|
+
|
|
1750
|
+
// Output:
|
|
1751
|
+
// 0
|
|
1752
|
+
// 22
|
|
1753
|
+
}
|
|
1754
|
+
```
|
|
1755
|
+
|
|
1756
|
+
## 查找替换
|
|
1757
|
+
|
|
1758
|
+
### `Replace`
|
|
1759
|
+
|
|
1760
|
+
- 说明: `Replace` 返回 `origin` 字符串中, `search` 被 `replace` 替换后的新字符串。 `search` 区分大小写。
|
|
1761
|
+
|
|
1762
|
+
- 格式:
|
|
1763
|
+
|
|
1764
|
+
```go
|
|
1765
|
+
Replace(origin, search, replace string, count ...int) string
|
|
1766
|
+
```
|
|
1767
|
+
|
|
1768
|
+
- 示例:
|
|
1769
|
+
|
|
1770
|
+
```go
|
|
1771
|
+
func ExampleReplace() {
|
|
1772
|
+
var (
|
|
1773
|
+
origin = `golang is very nice!`
|
|
1774
|
+
search = `golang`
|
|
1775
|
+
replace = `goframe`
|
|
1776
|
+
result = gstr.Replace(origin, search, replace)
|
|
1777
|
+
)
|
|
1778
|
+
fmt.Println(result)
|
|
1779
|
+
|
|
1780
|
+
// Output:
|
|
1781
|
+
// goframe is very nice!
|
|
1782
|
+
}
|
|
1783
|
+
```
|
|
1784
|
+
|
|
1785
|
+
### `ReplaceI`
|
|
1786
|
+
|
|
1787
|
+
- 说明: `ReplaceI` 返回 `origin` 字符串中, `search` 被 `replace` 替换后的新字符串。 `search` 不区分大小写。
|
|
1788
|
+
|
|
1789
|
+
- 格式:
|
|
1790
|
+
|
|
1791
|
+
```go
|
|
1792
|
+
ReplaceI(origin, search, replace string, count ...int) string
|
|
1793
|
+
```
|
|
1794
|
+
|
|
1795
|
+
- 示例:
|
|
1796
|
+
|
|
1797
|
+
```go
|
|
1798
|
+
func ExampleReplaceI() {
|
|
1799
|
+
var (
|
|
1800
|
+
origin = `golang is very nice!`
|
|
1801
|
+
search = `GOLANG`
|
|
1802
|
+
replace = `goframe`
|
|
1803
|
+
result = gstr.ReplaceI(origin, search, replace)
|
|
1804
|
+
)
|
|
1805
|
+
fmt.Println(result)
|
|
1806
|
+
|
|
1807
|
+
// Output:
|
|
1808
|
+
// goframe is very nice!
|
|
1809
|
+
}
|
|
1810
|
+
```
|
|
1811
|
+
|
|
1812
|
+
### `ReplaceByArray`
|
|
1813
|
+
|
|
1814
|
+
- 说明:`ReplaceByArray` 返回 `origin` 被一个切片按两个一组 `(search, replace)` 顺序替换的新字符串,区分大小写。
|
|
1815
|
+
|
|
1816
|
+
- 格式:
|
|
1817
|
+
|
|
1818
|
+
```go
|
|
1819
|
+
ReplaceByArray(origin string, array []string) string
|
|
1820
|
+
```
|
|
1821
|
+
|
|
1822
|
+
- 示例:
|
|
1823
|
+
|
|
1824
|
+
```go
|
|
1825
|
+
func ExampleReplaceByArray() {
|
|
1826
|
+
{
|
|
1827
|
+
var (
|
|
1828
|
+
origin = `golang is very nice`
|
|
1829
|
+
array = []string{"lang", "frame"}
|
|
1830
|
+
result = gstr.ReplaceByArray(origin, array)
|
|
1831
|
+
)
|
|
1832
|
+
fmt.Println(result)
|
|
1833
|
+
}
|
|
1834
|
+
{
|
|
1835
|
+
var (
|
|
1836
|
+
origin = `golang is very good`
|
|
1837
|
+
array = []string{"golang", "goframe", "good", "nice"}
|
|
1838
|
+
result = gstr.ReplaceByArray(origin, array)
|
|
1839
|
+
)
|
|
1840
|
+
fmt.Println(result)
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
// Output:
|
|
1844
|
+
// goframe is very nice
|
|
1845
|
+
// goframe is very nice
|
|
1846
|
+
}
|
|
1847
|
+
```
|
|
1848
|
+
|
|
1849
|
+
### `ReplaceIByArray`
|
|
1850
|
+
|
|
1851
|
+
- 说明:`ReplaceIByArray` 返回 `origin` 被一个切片按两个一组 `(search, replace)` 顺序替换的新字符串,不区分大小写。
|
|
1852
|
+
|
|
1853
|
+
- 格式:
|
|
1854
|
+
|
|
1855
|
+
```go
|
|
1856
|
+
ReplaceIByArray(origin string, array []string) string
|
|
1857
|
+
```
|
|
1858
|
+
|
|
1859
|
+
- 示例:
|
|
1860
|
+
|
|
1861
|
+
```go
|
|
1862
|
+
func ExampleReplaceIByArray() {
|
|
1863
|
+
var (
|
|
1864
|
+
origin = `golang is very Good`
|
|
1865
|
+
array = []string{"Golang", "goframe", "GOOD", "nice"}
|
|
1866
|
+
result = gstr.ReplaceIByArray(origin, array)
|
|
1867
|
+
)
|
|
1868
|
+
|
|
1869
|
+
fmt.Println(result)
|
|
1870
|
+
|
|
1871
|
+
// Output:
|
|
1872
|
+
// goframe is very nice
|
|
1873
|
+
}
|
|
1874
|
+
```
|
|
1875
|
+
|
|
1876
|
+
### `ReplaceByMap`
|
|
1877
|
+
|
|
1878
|
+
- 说明:`ReplaceByMap` 返回 `origin` 中 `map` 的 `key` 替换为 `value` 的新字符串,区分大小写。
|
|
1879
|
+
|
|
1880
|
+
- 格式:
|
|
1881
|
+
|
|
1882
|
+
```go
|
|
1883
|
+
ReplaceByMap(origin string, replaces map[string]string) string
|
|
1884
|
+
```
|
|
1885
|
+
|
|
1886
|
+
- 示例:
|
|
1887
|
+
|
|
1888
|
+
```go
|
|
1889
|
+
func ExampleReplaceByMap() {
|
|
1890
|
+
{
|
|
1891
|
+
var (
|
|
1892
|
+
origin = `golang is very nice`
|
|
1893
|
+
replaces = map[string]string{
|
|
1894
|
+
"lang": "frame",
|
|
1895
|
+
}
|
|
1896
|
+
result = gstr.ReplaceByMap(origin, replaces)
|
|
1897
|
+
)
|
|
1898
|
+
fmt.Println(result)
|
|
1899
|
+
}
|
|
1900
|
+
{
|
|
1901
|
+
var (
|
|
1902
|
+
origin = `golang is very good`
|
|
1903
|
+
replaces = map[string]string{
|
|
1904
|
+
"golang": "goframe",
|
|
1905
|
+
"good": "nice",
|
|
1906
|
+
}
|
|
1907
|
+
result = gstr.ReplaceByMap(origin, replaces)
|
|
1908
|
+
)
|
|
1909
|
+
fmt.Println(result)
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
// Output:
|
|
1913
|
+
// goframe is very nice
|
|
1914
|
+
// goframe is very nice
|
|
1915
|
+
}
|
|
1916
|
+
```
|
|
1917
|
+
|
|
1918
|
+
### `ReplaceIByMap`
|
|
1919
|
+
|
|
1920
|
+
- 说明:`ReplaceIByMap` 返回 `origin` 中 `map` 的 `key` 替换为 `value` 的新字符串,不区分大小写。
|
|
1921
|
+
|
|
1922
|
+
- 格式:
|
|
1923
|
+
|
|
1924
|
+
```go
|
|
1925
|
+
ReplaceIByMap(origin string, replaces map[string]string) string
|
|
1926
|
+
```
|
|
1927
|
+
|
|
1928
|
+
- 示例:
|
|
1929
|
+
|
|
1930
|
+
```go
|
|
1931
|
+
func ExampleReplaceIByMap() {
|
|
1932
|
+
var (
|
|
1933
|
+
origin = `golang is very nice`
|
|
1934
|
+
replaces = map[string]string{
|
|
1935
|
+
"Lang": "frame",
|
|
1936
|
+
}
|
|
1937
|
+
result = gstr.ReplaceIByMap(origin, replaces)
|
|
1938
|
+
)
|
|
1939
|
+
fmt.Println(result)
|
|
1940
|
+
|
|
1941
|
+
// Output:
|
|
1942
|
+
// goframe is very nice
|
|
1943
|
+
}
|
|
1944
|
+
```
|
|
1945
|
+
|
|
1946
|
+
## 子串截取
|
|
1947
|
+
|
|
1948
|
+
### `Str`
|
|
1949
|
+
|
|
1950
|
+
- 说明: `Str` 返回从 `needle` 第一次出现的位置开始,到 `haystack` 结尾的字符串(包含 `needle` 本身)。
|
|
1951
|
+
|
|
1952
|
+
- 格式:
|
|
1953
|
+
|
|
1954
|
+
```go
|
|
1955
|
+
Str(haystack string, needle string) string
|
|
1956
|
+
```
|
|
1957
|
+
|
|
1958
|
+
- 示例:
|
|
1959
|
+
|
|
1960
|
+
```go
|
|
1961
|
+
func ExampleStr() {
|
|
1962
|
+
var (
|
|
1963
|
+
haystack = `xxx.jpg`
|
|
1964
|
+
needle = `.`
|
|
1965
|
+
result = gstr.Str(haystack, needle)
|
|
1966
|
+
)
|
|
1967
|
+
fmt.Println(result)
|
|
1968
|
+
|
|
1969
|
+
// Output:
|
|
1970
|
+
// .jpg
|
|
1971
|
+
}
|
|
1972
|
+
```
|
|
1973
|
+
|
|
1974
|
+
### `StrEx`
|
|
1975
|
+
|
|
1976
|
+
- 说明: `StrEx` 返回从 `needle` 第一次出现的位置开始,到 `haystack` 结尾的字符串(不包含 `needle` 本身)。
|
|
1977
|
+
|
|
1978
|
+
- 格式:
|
|
1979
|
+
|
|
1980
|
+
```go
|
|
1981
|
+
StrEx(haystack string, needle string) string
|
|
1982
|
+
```
|
|
1983
|
+
|
|
1984
|
+
- 示例:
|
|
1985
|
+
|
|
1986
|
+
```go
|
|
1987
|
+
func ExampleStrEx() {
|
|
1988
|
+
var (
|
|
1989
|
+
haystack = `https://goframe.org/index.html?a=1&b=2`
|
|
1990
|
+
needle = `?`
|
|
1991
|
+
result = gstr.StrEx(haystack, needle)
|
|
1992
|
+
)
|
|
1993
|
+
fmt.Println(result)
|
|
1994
|
+
|
|
1995
|
+
// Output:
|
|
1996
|
+
// a=1&b=2
|
|
1997
|
+
}
|
|
1998
|
+
```
|
|
1999
|
+
|
|
2000
|
+
### `StrTill`
|
|
2001
|
+
|
|
2002
|
+
- 说明: `StrTill` 返回从 `haystack` 字符串开始到 `needle` 第一次出现的位置的字符串(包含 `needle` 本身)。
|
|
2003
|
+
|
|
2004
|
+
- 格式:
|
|
2005
|
+
|
|
2006
|
+
```go
|
|
2007
|
+
StrTill(haystack string, needle string) string
|
|
2008
|
+
```
|
|
2009
|
+
|
|
2010
|
+
- 示例:
|
|
2011
|
+
|
|
2012
|
+
```go
|
|
2013
|
+
func ExampleStrTill() {
|
|
2014
|
+
var (
|
|
2015
|
+
haystack = `https://goframe.org/index.html?test=123456`
|
|
2016
|
+
needle = `?`
|
|
2017
|
+
result = gstr.StrTill(haystack, needle)
|
|
2018
|
+
)
|
|
2019
|
+
fmt.Println(result)
|
|
2020
|
+
|
|
2021
|
+
// Output:
|
|
2022
|
+
// https://goframe.org/index.html?
|
|
2023
|
+
}
|
|
2024
|
+
```
|
|
2025
|
+
|
|
2026
|
+
### `StrTillEx`
|
|
2027
|
+
|
|
2028
|
+
- 说明: `StrTillEx` 返回从 `haystack` 字符串开始到 `needle` 第一次出现的位置的字符串(不包含 `needle` 本身)。
|
|
2029
|
+
|
|
2030
|
+
- 格式:
|
|
2031
|
+
|
|
2032
|
+
```go
|
|
2033
|
+
StrTillEx(haystack string, needle string) string
|
|
2034
|
+
```
|
|
2035
|
+
|
|
2036
|
+
- 示例:
|
|
2037
|
+
|
|
2038
|
+
```go
|
|
2039
|
+
func ExampleStrTillEx() {
|
|
2040
|
+
var (
|
|
2041
|
+
haystack = `https://goframe.org/index.html?test=123456`
|
|
2042
|
+
needle = `?`
|
|
2043
|
+
result = gstr.StrTillEx(haystack, needle)
|
|
2044
|
+
)
|
|
2045
|
+
fmt.Println(result)
|
|
2046
|
+
|
|
2047
|
+
// Output:
|
|
2048
|
+
// https://goframe.org/index.html
|
|
2049
|
+
}
|
|
2050
|
+
```
|
|
2051
|
+
|
|
2052
|
+
### `SubStr`
|
|
2053
|
+
|
|
2054
|
+
- 说明:`SubStr` 返回字符串 `str` 从 `start` 开始,长度为 `length` 的新字符串。 参数 `length` 是可选的,它默认使用 `str` 的长度。
|
|
2055
|
+
|
|
2056
|
+
- 格式:
|
|
2057
|
+
|
|
2058
|
+
```go
|
|
2059
|
+
SubStr(str string, start int, length ...int) (substr string)
|
|
2060
|
+
```
|
|
2061
|
+
|
|
2062
|
+
- 示例:
|
|
2063
|
+
|
|
2064
|
+
```go
|
|
2065
|
+
func ExampleSubStr() {
|
|
2066
|
+
var (
|
|
2067
|
+
str = `1234567890`
|
|
2068
|
+
start = 0
|
|
2069
|
+
length = 4
|
|
2070
|
+
subStr = gstr.SubStr(str, start, length)
|
|
2071
|
+
)
|
|
2072
|
+
fmt.Println(subStr)
|
|
2073
|
+
|
|
2074
|
+
// Output:
|
|
2075
|
+
// 1234
|
|
2076
|
+
}
|
|
2077
|
+
```
|
|
2078
|
+
|
|
2079
|
+
### `SubStrRune`
|
|
2080
|
+
|
|
2081
|
+
- 说明:`SubStrRune` 返回 `unicode` 字符串 `str` 从 `start` 开始,长度为 `length` 的新字符串。 参数 `length` 是可选的,它默认使用 `str` 的长度。
|
|
2082
|
+
|
|
2083
|
+
- 格式:
|
|
2084
|
+
|
|
2085
|
+
```go
|
|
2086
|
+
SubStrRune(str string, start int, length ...int) (substr string)
|
|
2087
|
+
```
|
|
2088
|
+
|
|
2089
|
+
- 示例:
|
|
2090
|
+
|
|
2091
|
+
```go
|
|
2092
|
+
func ExampleSubStrRune() {
|
|
2093
|
+
var (
|
|
2094
|
+
str = `GoFrame是一款模块化、高性能、企业级的Go基础开发框架。`
|
|
2095
|
+
start = 14
|
|
2096
|
+
length = 3
|
|
2097
|
+
subStr = gstr.SubStrRune(str, start, length)
|
|
2098
|
+
)
|
|
2099
|
+
fmt.Println(subStr)
|
|
2100
|
+
|
|
2101
|
+
// Output:
|
|
2102
|
+
// 高性能
|
|
2103
|
+
}
|
|
2104
|
+
```
|
|
2105
|
+
|
|
2106
|
+
### `StrLimit`
|
|
2107
|
+
|
|
2108
|
+
- 说明: `StrLimit` 取 `str` 字符串开始,长度为 `length` 的字符串,加上 `suffix...` 后返回新的字符串。
|
|
2109
|
+
|
|
2110
|
+
- 格式:
|
|
2111
|
+
|
|
2112
|
+
```go
|
|
2113
|
+
StrLimit(str string, length int, suffix ...string) string
|
|
2114
|
+
```
|
|
2115
|
+
|
|
2116
|
+
- 示例:
|
|
2117
|
+
|
|
2118
|
+
```go
|
|
2119
|
+
func ExampleStrLimit() {
|
|
2120
|
+
var (
|
|
2121
|
+
str = `123456789`
|
|
2122
|
+
length = 3
|
|
2123
|
+
suffix = `...`
|
|
2124
|
+
result = gstr.StrLimit(str, length, suffix)
|
|
2125
|
+
)
|
|
2126
|
+
fmt.Println(result)
|
|
2127
|
+
|
|
2128
|
+
// Output:
|
|
2129
|
+
// 123...
|
|
2130
|
+
}
|
|
2131
|
+
```
|
|
2132
|
+
|
|
2133
|
+
### `StrLimitRune`
|
|
2134
|
+
|
|
2135
|
+
- 说明: `StrLimitRune` 取 `unicode` 字符串 `str` 开始,长度为 `length` 的字符串,加上 `suffix...` 后返回新的字符串。
|
|
2136
|
+
|
|
2137
|
+
- 格式:
|
|
2138
|
+
|
|
2139
|
+
```go
|
|
2140
|
+
StrLimitRune(str string, length int, suffix ...string) string
|
|
2141
|
+
```
|
|
2142
|
+
|
|
2143
|
+
- 示例:
|
|
2144
|
+
|
|
2145
|
+
```go
|
|
2146
|
+
func ExampleStrLimitRune() {
|
|
2147
|
+
var (
|
|
2148
|
+
str = `GoFrame是一款模块化、高性能、企业级的Go基础开发框架。`
|
|
2149
|
+
length = 17
|
|
2150
|
+
suffix = "..."
|
|
2151
|
+
result = gstr.StrLimitRune(str, length, suffix)
|
|
2152
|
+
)
|
|
2153
|
+
fmt.Println(result)
|
|
2154
|
+
|
|
2155
|
+
// Output:
|
|
2156
|
+
// GoFrame是一款模块化、高性能...
|
|
2157
|
+
}
|
|
2158
|
+
```
|
|
2159
|
+
|
|
2160
|
+
### `SubStrFrom`
|
|
2161
|
+
|
|
2162
|
+
- 说明:`SubStrFrom` 返回字符串 `str` 从第一次出现 `need` 到 `str` 的结尾的字符串(包含 `need`)。
|
|
2163
|
+
|
|
2164
|
+
- 格式:
|
|
2165
|
+
|
|
2166
|
+
```go
|
|
2167
|
+
SubStrFrom(str string, need string) (substr string)
|
|
2168
|
+
```
|
|
2169
|
+
|
|
2170
|
+
- 示例:
|
|
2171
|
+
|
|
2172
|
+
```go
|
|
2173
|
+
func ExampleSubStrFrom() {
|
|
2174
|
+
var (
|
|
2175
|
+
str = "我爱GoFrameGood"
|
|
2176
|
+
need = `爱`
|
|
2177
|
+
)
|
|
2178
|
+
|
|
2179
|
+
fmt.Println(gstr.SubStrFrom(str, need))
|
|
2180
|
+
|
|
2181
|
+
// Output:
|
|
2182
|
+
// 爱GoFrameGood
|
|
2183
|
+
}
|
|
2184
|
+
```
|
|
2185
|
+
|
|
2186
|
+
### `SubStrFromEx`
|
|
2187
|
+
|
|
2188
|
+
- 说明:`SubStrFromEx` 返回字符串 `str` 从第一次出现 `need` 到 `str` 的结尾的字符串(不包含 `need`)。
|
|
2189
|
+
|
|
2190
|
+
- 格式:
|
|
2191
|
+
|
|
2192
|
+
```go
|
|
2193
|
+
SubStrFromEx(str string, need string) (substr string)
|
|
2194
|
+
```
|
|
2195
|
+
|
|
2196
|
+
- 示例:
|
|
2197
|
+
|
|
2198
|
+
```go
|
|
2199
|
+
func ExampleSubStrFromEx() {
|
|
2200
|
+
var (
|
|
2201
|
+
str = "我爱GoFrameGood"
|
|
2202
|
+
need = `爱`
|
|
2203
|
+
)
|
|
2204
|
+
|
|
2205
|
+
fmt.Println(gstr.SubStrFromEx(str, need))
|
|
2206
|
+
|
|
2207
|
+
// Output:
|
|
2208
|
+
// GoFrameGood
|
|
2209
|
+
}
|
|
2210
|
+
```
|
|
2211
|
+
|
|
2212
|
+
### `SubStrFromR`
|
|
2213
|
+
|
|
2214
|
+
- 说明:`SubStrFromR` 返回字符串 `str` 从最后一次出现 `need` 到 `str` 的结尾的字符串(包含 `need`)。
|
|
2215
|
+
|
|
2216
|
+
- 格式:
|
|
2217
|
+
|
|
2218
|
+
```go
|
|
2219
|
+
SubStrFromR(str string, need string) (substr string)
|
|
2220
|
+
```
|
|
2221
|
+
|
|
2222
|
+
- 示例:
|
|
2223
|
+
|
|
2224
|
+
```go
|
|
2225
|
+
func ExampleSubStrFromR() {
|
|
2226
|
+
var (
|
|
2227
|
+
str = "我爱GoFrameGood"
|
|
2228
|
+
need = `Go`
|
|
2229
|
+
)
|
|
2230
|
+
|
|
2231
|
+
fmt.Println(gstr.SubStrFromR(str, need))
|
|
2232
|
+
|
|
2233
|
+
// Output:
|
|
2234
|
+
// Good
|
|
2235
|
+
}
|
|
2236
|
+
```
|
|
2237
|
+
|
|
2238
|
+
### `SubStrFromREx`
|
|
2239
|
+
|
|
2240
|
+
- 说明:`SubStrFromREx` 返回字符串 `str` 从最后一次出现 `need` 到 `str` 的结尾的字符串(不包含 `need`)。
|
|
2241
|
+
|
|
2242
|
+
- 格式:
|
|
2243
|
+
|
|
2244
|
+
```go
|
|
2245
|
+
SubStrFromREx(str string, need string) (substr string)
|
|
2246
|
+
```
|
|
2247
|
+
|
|
2248
|
+
- 示例:
|
|
2249
|
+
|
|
2250
|
+
```go
|
|
2251
|
+
func ExampleSubStrFromREx() {
|
|
2252
|
+
var (
|
|
2253
|
+
str = "我爱GoFrameGood"
|
|
2254
|
+
need = `Go`
|
|
2255
|
+
)
|
|
2256
|
+
|
|
2257
|
+
fmt.Println(gstr.SubStrFromREx(str, need))
|
|
2258
|
+
|
|
2259
|
+
// Output:
|
|
2260
|
+
// od
|
|
2261
|
+
}
|
|
2262
|
+
```
|
|
2263
|
+
|
|
2264
|
+
## 字符/子串过滤
|
|
2265
|
+
|
|
2266
|
+
### `Trim`
|
|
2267
|
+
|
|
2268
|
+
- 说明: `Trim` 从字符串的开头和结尾剪切空白(或其他字符)。 可选参数 `characterMask` 指定额外剥离的字符。
|
|
2269
|
+
|
|
2270
|
+
- 格式:
|
|
2271
|
+
|
|
2272
|
+
```go
|
|
2273
|
+
Trim(str string, characterMask ...string) string
|
|
2274
|
+
```
|
|
2275
|
+
|
|
2276
|
+
- 示例:
|
|
2277
|
+
|
|
2278
|
+
```go
|
|
2279
|
+
func ExampleTrim() {
|
|
2280
|
+
var (
|
|
2281
|
+
str = `*Hello World*`
|
|
2282
|
+
characterMask = "*d"
|
|
2283
|
+
result = gstr.Trim(str, characterMask)
|
|
2284
|
+
)
|
|
2285
|
+
fmt.Println(result)
|
|
2286
|
+
|
|
2287
|
+
// Output:
|
|
2288
|
+
// Hello Worl
|
|
2289
|
+
}
|
|
2290
|
+
```
|
|
2291
|
+
|
|
2292
|
+
### `TrimStr`
|
|
2293
|
+
|
|
2294
|
+
- 说明:`TrimStr` 从字符串的开头和结尾去掉所有 `cut` 字符串(不会删除开头或结尾的空白)。
|
|
2295
|
+
|
|
2296
|
+
- 格式:
|
|
2297
|
+
|
|
2298
|
+
```go
|
|
2299
|
+
TrimStr(str string, cut string, count ...int) string
|
|
2300
|
+
```
|
|
2301
|
+
|
|
2302
|
+
- 示例:
|
|
2303
|
+
|
|
2304
|
+
```go
|
|
2305
|
+
func ExampleTrimStr() {
|
|
2306
|
+
var (
|
|
2307
|
+
str = `Hello World`
|
|
2308
|
+
cut = "World"
|
|
2309
|
+
count = -1
|
|
2310
|
+
result = gstr.TrimStr(str, cut, count)
|
|
2311
|
+
)
|
|
2312
|
+
fmt.Println(result)
|
|
2313
|
+
|
|
2314
|
+
// Output:
|
|
2315
|
+
// Hello
|
|
2316
|
+
}
|
|
2317
|
+
```
|
|
2318
|
+
|
|
2319
|
+
### `TrimLeft`
|
|
2320
|
+
|
|
2321
|
+
- 说明:`TrimLeft` 将字符串开头的空格(或其他字符)删除。
|
|
2322
|
+
|
|
2323
|
+
- 格式:
|
|
2324
|
+
|
|
2325
|
+
```go
|
|
2326
|
+
TrimLeft(str string, characterMask ...string) string
|
|
2327
|
+
```
|
|
2328
|
+
|
|
2329
|
+
- 示例:
|
|
2330
|
+
|
|
2331
|
+
```go
|
|
2332
|
+
func ExampleTrimLeft() {
|
|
2333
|
+
var (
|
|
2334
|
+
str = `*Hello World*`
|
|
2335
|
+
characterMask = "*"
|
|
2336
|
+
result = gstr.TrimLeft(str, characterMask)
|
|
2337
|
+
)
|
|
2338
|
+
fmt.Println(result)
|
|
2339
|
+
|
|
2340
|
+
// Output:
|
|
2341
|
+
// Hello World*
|
|
2342
|
+
}
|
|
2343
|
+
```
|
|
2344
|
+
|
|
2345
|
+
### `TrimLeftStr`
|
|
2346
|
+
|
|
2347
|
+
- 说明:`TrimLeftStr` 从字符串的开头删除 `count` 个 `cut` 字符串(不会删除开头的空格)。
|
|
2348
|
+
|
|
2349
|
+
- 格式:
|
|
2350
|
+
|
|
2351
|
+
```go
|
|
2352
|
+
TrimLeftStr(str string, cut string, count ...int) string
|
|
2353
|
+
```
|
|
2354
|
+
|
|
2355
|
+
- 示例:
|
|
2356
|
+
|
|
2357
|
+
```go
|
|
2358
|
+
func ExampleTrimLeftStr() {
|
|
2359
|
+
var (
|
|
2360
|
+
str = `**Hello World**`
|
|
2361
|
+
cut = "*"
|
|
2362
|
+
count = 1
|
|
2363
|
+
result = gstr.TrimLeftStr(str, cut, count)
|
|
2364
|
+
)
|
|
2365
|
+
fmt.Println(result)
|
|
2366
|
+
|
|
2367
|
+
// Output:
|
|
2368
|
+
// *Hello World**
|
|
2369
|
+
}
|
|
2370
|
+
```
|
|
2371
|
+
|
|
2372
|
+
### `TrimRight`
|
|
2373
|
+
|
|
2374
|
+
- 说明: `TrimRight` 从字符串的末尾去掉空白(或其他字符)。
|
|
2375
|
+
|
|
2376
|
+
- 格式:
|
|
2377
|
+
|
|
2378
|
+
```go
|
|
2379
|
+
TrimRight(str string, characterMask ...string) string
|
|
2380
|
+
```
|
|
2381
|
+
|
|
2382
|
+
- 示例:
|
|
2383
|
+
|
|
2384
|
+
```go
|
|
2385
|
+
func ExampleTrimRight() {
|
|
2386
|
+
var (
|
|
2387
|
+
str = `**Hello World**`
|
|
2388
|
+
characterMask = "*def" // []byte{"*", "d", "e", "f"}
|
|
2389
|
+
result = gstr.TrimRight(str, characterMask)
|
|
2390
|
+
)
|
|
2391
|
+
fmt.Println(result)
|
|
2392
|
+
|
|
2393
|
+
// Output:
|
|
2394
|
+
// **Hello Worl
|
|
2395
|
+
}
|
|
2396
|
+
```
|
|
2397
|
+
|
|
2398
|
+
### `TrimRightStr`
|
|
2399
|
+
|
|
2400
|
+
- 说明:`TrimRightStr` 从字符串的尾部删除 `count` 个 `cut` 字符串(不会删除尾部的空格)。
|
|
2401
|
+
|
|
2402
|
+
- 格式:
|
|
2403
|
+
|
|
2404
|
+
```go
|
|
2405
|
+
TrimRightStr(str string, cut string, count ...int) string
|
|
2406
|
+
```
|
|
2407
|
+
|
|
2408
|
+
- 示例:
|
|
2409
|
+
|
|
2410
|
+
```go
|
|
2411
|
+
func ExampleTrimRightStr() {
|
|
2412
|
+
var (
|
|
2413
|
+
str = `Hello World!`
|
|
2414
|
+
cut = "!"
|
|
2415
|
+
count = -1
|
|
2416
|
+
result = gstr.TrimRightStr(str, cut, count)
|
|
2417
|
+
)
|
|
2418
|
+
fmt.Println(result)
|
|
2419
|
+
|
|
2420
|
+
// Output:
|
|
2421
|
+
// Hello World
|
|
2422
|
+
}
|
|
2423
|
+
```
|
|
2424
|
+
|
|
2425
|
+
### `TrimAll`
|
|
2426
|
+
|
|
2427
|
+
- 说明: `TrimAll` 删除字符串 `str` 中的所有空格(或其他字符)以及 `characterMask` 字符。
|
|
2428
|
+
|
|
2429
|
+
- 格式:
|
|
2430
|
+
|
|
2431
|
+
```go
|
|
2432
|
+
TrimAll(str string, characterMask ...string) string
|
|
2433
|
+
```
|
|
2434
|
+
|
|
2435
|
+
- 示例:
|
|
2436
|
+
|
|
2437
|
+
```go
|
|
2438
|
+
func ExampleTrimAll() {
|
|
2439
|
+
var (
|
|
2440
|
+
str = `*Hello World*`
|
|
2441
|
+
characterMask = "*"
|
|
2442
|
+
result = gstr.TrimAll(str, characterMask)
|
|
2443
|
+
)
|
|
2444
|
+
fmt.Println(result)
|
|
2445
|
+
|
|
2446
|
+
// Output:
|
|
2447
|
+
// HelloWorld
|
|
2448
|
+
}
|
|
2449
|
+
```
|
|
2450
|
+
|
|
2451
|
+
### `HasPrefix`
|
|
2452
|
+
|
|
2453
|
+
- 说明: `HasPrefix` 返回 `s` 是否以 `prefix` 开头。
|
|
2454
|
+
|
|
2455
|
+
- 格式:
|
|
2456
|
+
|
|
2457
|
+
```go
|
|
2458
|
+
HasPrefix(s, prefix string) bool
|
|
2459
|
+
```
|
|
2460
|
+
|
|
2461
|
+
- 示例:
|
|
2462
|
+
|
|
2463
|
+
```go
|
|
2464
|
+
func ExampleHasPrefix() {
|
|
2465
|
+
var (
|
|
2466
|
+
s = `Hello World`
|
|
2467
|
+
prefix = "Hello"
|
|
2468
|
+
result = gstr.HasPrefix(s, prefix)
|
|
2469
|
+
)
|
|
2470
|
+
fmt.Println(result)
|
|
2471
|
+
|
|
2472
|
+
// Output:
|
|
2473
|
+
// true
|
|
2474
|
+
}
|
|
2475
|
+
```
|
|
2476
|
+
|
|
2477
|
+
### `HasSuffix`
|
|
2478
|
+
|
|
2479
|
+
- 说明: `HasSuffix` 返回 `s` 是否以 `suffix` 结束。
|
|
2480
|
+
|
|
2481
|
+
- 格式:
|
|
2482
|
+
|
|
2483
|
+
```go
|
|
2484
|
+
HasSuffix(s, suffix string) bool
|
|
2485
|
+
```
|
|
2486
|
+
|
|
2487
|
+
- 示例:
|
|
2488
|
+
|
|
2489
|
+
```go
|
|
2490
|
+
func ExampleHasSuffix() {
|
|
2491
|
+
var (
|
|
2492
|
+
s = `my best love is goframe`
|
|
2493
|
+
prefix = "goframe"
|
|
2494
|
+
result = gstr.HasSuffix(s, prefix)
|
|
2495
|
+
)
|
|
2496
|
+
fmt.Println(result)
|
|
2497
|
+
|
|
2498
|
+
// Output:
|
|
2499
|
+
// true
|
|
2500
|
+
}
|
|
2501
|
+
```
|
|
2502
|
+
|
|
2503
|
+
## 版本比较
|
|
2504
|
+
|
|
2505
|
+
### `CompareVersion`
|
|
2506
|
+
|
|
2507
|
+
- 说明:`CompareVersion` 将 `a` 和 `b` 作为标准 `GNU` 版本进行比较。
|
|
2508
|
+
|
|
2509
|
+
- 格式:
|
|
2510
|
+
|
|
2511
|
+
```go
|
|
2512
|
+
CompareVersion(a, b string) int
|
|
2513
|
+
```
|
|
2514
|
+
|
|
2515
|
+
- 示例:
|
|
2516
|
+
|
|
2517
|
+
```go
|
|
2518
|
+
func ExampleCompareVersion() {
|
|
2519
|
+
fmt.Println(gstr.CompareVersion("v2.11.9", "v2.10.8"))
|
|
2520
|
+
fmt.Println(gstr.CompareVersion("1.10.8", "1.19.7"))
|
|
2521
|
+
fmt.Println(gstr.CompareVersion("2.8.beta", "2.8"))
|
|
2522
|
+
|
|
2523
|
+
// Output:
|
|
2524
|
+
// 1
|
|
2525
|
+
// -1
|
|
2526
|
+
// 0
|
|
2527
|
+
}
|
|
2528
|
+
```
|
|
2529
|
+
|
|
2530
|
+
### `CompareVersionGo`
|
|
2531
|
+
|
|
2532
|
+
- 说明: `CompareVersionGo` 将 `a` 和 `b` 作为标准的 `Golang` 版本进行比较。
|
|
2533
|
+
|
|
2534
|
+
- 格式:
|
|
2535
|
+
|
|
2536
|
+
```go
|
|
2537
|
+
CompareVersionGo(a, b string) int
|
|
2538
|
+
```
|
|
2539
|
+
|
|
2540
|
+
- 示例:
|
|
2541
|
+
|
|
2542
|
+
```go
|
|
2543
|
+
func ExampleCompareVersionGo() {
|
|
2544
|
+
fmt.Println(gstr.CompareVersionGo("v2.11.9", "v2.10.8"))
|
|
2545
|
+
fmt.Println(gstr.CompareVersionGo("v4.20.1", "v4.20.1+incompatible"))
|
|
2546
|
+
fmt.Println(gstr.CompareVersionGo(
|
|
2547
|
+
"v0.0.2-20180626092158-b2ccc119800e",
|
|
2548
|
+
"v1.0.1-20190626092158-b2ccc519800e",
|
|
2549
|
+
))
|
|
2550
|
+
|
|
2551
|
+
// Output:
|
|
2552
|
+
// 1
|
|
2553
|
+
// 1
|
|
2554
|
+
// -1
|
|
2555
|
+
}
|
|
2556
|
+
```
|
|
2557
|
+
|
|
2558
|
+
## 相似计算
|
|
2559
|
+
|
|
2560
|
+
### `Levenshtein`
|
|
2561
|
+
|
|
2562
|
+
- 说明: `Levenshtein` 计算两个字符串之间的 `Levenshtein` 距离。
|
|
2563
|
+
|
|
2564
|
+
- 格式:
|
|
2565
|
+
|
|
2566
|
+
```go
|
|
2567
|
+
Levenshtein(str1, str2 string, costIns, costRep, costDel int) int
|
|
2568
|
+
```
|
|
2569
|
+
|
|
2570
|
+
- 示例:
|
|
2571
|
+
|
|
2572
|
+
```go
|
|
2573
|
+
func ExampleLevenshtein() {
|
|
2574
|
+
var (
|
|
2575
|
+
str1 = "Hello World"
|
|
2576
|
+
str2 = "hallo World"
|
|
2577
|
+
costIns = 1
|
|
2578
|
+
costRep = 1
|
|
2579
|
+
costDel = 1
|
|
2580
|
+
result = gstr.Levenshtein(str1, str2, costIns, costRep, costDel)
|
|
2581
|
+
)
|
|
2582
|
+
fmt.Println(result)
|
|
2583
|
+
|
|
2584
|
+
// Output:
|
|
2585
|
+
// 2
|
|
2586
|
+
}
|
|
2587
|
+
```
|
|
2588
|
+
|
|
2589
|
+
### `SimilarText`
|
|
2590
|
+
|
|
2591
|
+
- 说明: `SimilarText` 计算两个字符串之间的相似度。
|
|
2592
|
+
|
|
2593
|
+
- 格式:
|
|
2594
|
+
|
|
2595
|
+
```go
|
|
2596
|
+
SimilarText(first, second string, percent *float64) int
|
|
2597
|
+
```
|
|
2598
|
+
|
|
2599
|
+
- 示例:
|
|
2600
|
+
|
|
2601
|
+
```go
|
|
2602
|
+
func ExampleSimilarText() {
|
|
2603
|
+
var (
|
|
2604
|
+
first = `AaBbCcDd`
|
|
2605
|
+
second = `ad`
|
|
2606
|
+
percent = 0.80
|
|
2607
|
+
result = gstr.SimilarText(first, second, &percent)
|
|
2608
|
+
)
|
|
2609
|
+
fmt.Println(result)
|
|
2610
|
+
|
|
2611
|
+
// Output:
|
|
2612
|
+
// 2
|
|
2613
|
+
}
|
|
2614
|
+
```
|
|
2615
|
+
|
|
2616
|
+
### `Soundex`
|
|
2617
|
+
|
|
2618
|
+
- 说明: `Soundex` 用于计算字符串的 `Soundex` 键。
|
|
2619
|
+
|
|
2620
|
+
- 格式:
|
|
2621
|
+
|
|
2622
|
+
```go
|
|
2623
|
+
Soundex(str string) string
|
|
2624
|
+
```
|
|
2625
|
+
|
|
2626
|
+
- 示例:
|
|
2627
|
+
|
|
2628
|
+
```go
|
|
2629
|
+
func ExampleSoundex() {
|
|
2630
|
+
var (
|
|
2631
|
+
str1 = `Hello`
|
|
2632
|
+
str2 = `Hallo`
|
|
2633
|
+
result1 = gstr.Soundex(str1)
|
|
2634
|
+
result2 = gstr.Soundex(str2)
|
|
2635
|
+
)
|
|
2636
|
+
fmt.Println(result1, result2)
|
|
2637
|
+
|
|
2638
|
+
// Output:
|
|
2639
|
+
// H400 H400
|
|
2640
|
+
}
|
|
2641
|
+
```
|