GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jempe/include_code: Include Code is a Go library for seamlessly embedding the contents of one file into another at designated comment markers.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
utils
utils
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
main.go
main.go
 
 

Repository files navigation

Include Code

Small library to insert code of certain file in another file.

Description

include_code is a Go library that allows you to include the content of one file into another file at specified locations. It searches for specific comment markers and replaces them with the content of the specified file.

Usage

To use include_code, run the following command:

include_code <file>

Example

Consider you have the following content in main_file.js:

//This is the main file.
/*--include:include_file.js:--*/
/*--includeend--*/
//This is after the included file.

And the content of include_file.js is:

//This is the content of the included file.

After running:

include_code main_file.txt

The main_file.js will be transformed into:

//This is the main file.
/*--include:include_file.js:--*/
//This is the content of the included file.
/*--includeend--*/
//This is after the included file.

Installation

To install the include_code library, use the following command:

go install github.com/jempe/include_code@latest

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or additions.

License

This project is licensed under the Apache 2.0 License.

About

Include Code is a Go library for seamlessly embedding the contents of one file into another at designated comment markers.

Topics

code-generationtext-manipulation

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.