embedtext

package module
v0.0.0-...-5e21373 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2017 License: AGPL-3.0 Imports: 4 Imported by: 0

README

Embed Text

Embed Text is a library for Go to embed a message in a file. It's originally designed to embed configuration settings in an already compiled binary, a way of customizing a binary after it has been compiled.

Check out cmd/embedtext/main.go for an example of how to use this.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Token is used to delimite the code from the actul message
	Token = "FINDME"
	// PartialCount is the number of times the token will apper in normal code before actually delimiting code from message
	PartialCount = 2
	// Exe is the path to the exe to modify
	Exe string
)

Functions

func Embed

func Embed(text string) error

Embed stores a message in the Exe

func Read

func Read() (message string)

Read returns the message stored in the Exe

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL