argv_from_source

command
v0.0.0-...-60b6bad Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

README

Argv from Source

Nearly the same as shello_world but instead of command-line arguments variables baked into the source are used.

Compile-time Config

Compile time configuration is possible with the linker's -X (as in go build -ldflags '-X main.Foo=bar'). The variables are as follows

Variable Default Description
main.Address localhost:4444 TCP Server Address
main.File /etc/hosts File to send on the TCP connection

When building with the Makefile these may be passed in with the LINKFLAGS environment variable, as in

LINKFLAGS="-X main.Address=example.com:8080" make

Documentation

Overview

Program argv_from_source - shello_world with baked-in config

Jump to

Keyboard shortcuts

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