Documentation ¶
Overview ¶
Package bincommon is the common code and flag handling between the fortio (fortio_main.go) and fcurl (fcurl.go) executables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // QuietFlag is the value of -quiet. QuietFlag = flag.Bool("quiet", false, "Quiet mode: sets the loglevel to Error and reduces the output.") )
Functions ¶
func FetchURL ¶
func FetchURL(o *fhttp.HTTPOptions)
FetchURL is fetching url content and exiting with 1 upon error. common part between fortio_main and fcurl.
func FlagsUsage ¶
FlagsUsage prints end of the usage() (flags part + error message).
func SharedHTTPOptions ¶
func SharedHTTPOptions() *fhttp.HTTPOptions
SharedHTTPOptions is the flag->httpoptions transfer code shared between fortio_main and fcurl.
func SharedMain ¶
SharedMain is the common part of main from fortio_main and fcurl.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.