go-header

module
v0.0.0-...-352a070 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT

README

CircleCI Go Report Card GoDoc license

go-header

Description

go-header is a simple program for adding headers to files.

Usage

CLI

You can use the command line tool to convert between formats.

Usage: grw [-input_uri INPUT_URI] [-input_compression [bzip2|gzip|snappy|zip|none]] [-output_uri OUTPUT_URI] [-output_compression [bzip2|gzip|snappy|zip|none]] [-verbose] [-version]
Options:
  -aws_access_key_id string
        Defaults to value of environment variable AWS_ACCESS_KEY_ID
  -aws_default_region string
        Defaults to value of environment variable AWS_DEFAULT_REGION.
  -aws_secret_access_key string
        Defaults to value of environment variable AWS_SECRET_ACCESS_KEY.
  -aws_session_token string
        Defaults to value of environment variable AWS_SESSION_TOKEN.
  -help
        Print help
  -input_buffer_size int
        the input reader buffer size (default 4096)
  -input_compression string
        Stream input compression algorithm for nodes, using: bzip2, gzip, snappy, zip, or none.
  -input_uri string
        "stdin" or uri to input file (default "stdin")
  -output_append
        append output to resource
  -output_buffer_size int
        the output writer buffer size (default 4096)
  -output_compression string
        Stream input compression algorithm for nodes, using: bzip2, gzip, snappy, zip, or none.
  -output_uri string
        "stdout" or uri to output resource (default "stdout")
  -version
        Prints version to stdout

Go

You can import go-header as a library with:

import (
  "github.com/spatialcurrent/go-header/pkg/header"
)
...

See grw in GoDoc for information on how to use Go API.

Examples:

TBD

Building

CLI

The command line go-header program can be built with the scripts/build_cli.sh script.

Changing Destination

The default destination for build artifacts is go-reader/bin, but you can change the destination with a CLI argument. For building on a Chromebook consider saving the artifacts in /usr/local/go/bin, e.g., bash scripts/build_cli.sh /usr/local/go/bin

Contributing

Spatial Current, Inc. is currently accepting pull requests for this repository. We'd love to have your contributions! Please see Contributing.md for how to get started.

License

This work is distributed under the MIT License. See LICENSE file.

Directories

Path Synopsis
cmd
pkg
goheader
=================================================================
=================================================================

Jump to

Keyboard shortcuts

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