May 13, 2024, 1:44 p.m. | forrest

DEV Community dev.to

Sending code can be a pain. Virus filters, attachment rules, and more can make it difficult. Sometimes you just need a text file.


Enter code2text. This is a simple Go CLI tool that will traverse a project's directories and add all code to a single text document. This document can then be uploaded to an AI tool such as ChatGPT for analysis.


The created file will start with the directory structure, then the files. The defaults contain file extensions …

attachment can cli code code2text document file go project rules simple single text tool virus

Sr. Product Manager

@ MixMode | Remote, US

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Security Analyst

@ Halton Region | Oakville, Ontario, Canada

Senior Cyber Security Analyst

@ Valley Water | San Jose, CA

Engineer I, S/W QA Cyber Security

@ Boston Scientific | Pune, IN

Application Security and Secure-SDLC Expert

@ CYE | Herzliya, Israel