command
Version:
v0.0.0-...-60b6bad
Opens a new window with list of versions in this module.
Published: Sep 12, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
Program argv_from_source - shello_world with baked-in config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.