• Who we are
  • Services
  • Portfolio
  • Insights
  • Say hello
  • Email us hello@ainsley.dev
    Chat with us +44 7507 784 206
    Connect with us
  • HTML
  • General
  • SCSS
  • General
  • Naming
  • Go
  • General
  • Comments
  • Function Patterns
  • Constructors & Funcs
  • Control Flow
  • Errors
  • Testing
  • JS
  • General
  • Testing
  • Git
  • Commits
  • Pre-Commit Checklist
  • SvelteKit
  • General
  • Routing
  • Payload
  • General
  • Fields
  • Hooks
  • Go

    General

    Go code style, interfaces & naming conventions

    Comments

    Go documentation & comment standards for exported types and functions

    Function Patterns

    Go function patterns using context.Context for I/O & cancellation

    Constructors & Funcs

    Constructor & function patterns with validation using the enforce package

    Control Flow

    Control flow patterns and best practices

    Errors

    Go error handling patterns with custom types and errors.Wrap

    Testing

    Go testing patterns using test tables, t.Run subtests & mocking
    Last modified: 27/10/2025 2022-2025 ©ainsley.dev, All rights reserved.
    ainsley.dev Symbol
    Digital craftmanship
     sculpting
     you as an
     industry leader.
    Email us hello@ainsley.dev
    Connect with us
  • Home
  • Who we are
  • Services
  • Portfolio
  • Insights
  • Say hello
  • Brand
  • Questionnaire
  • Feedback
  • Terms
  • Privacy
  • Cookies
  • Guidelines
  • ainsley.dev® is a registered company in England and Wales. Company Number 14550437. ©2025 ainsley.dev LTD. All rights reserved.
    The ainsley.dev® name and logo are registered trademarks of ainsley.dev LTD.