Skip to content
Automatically add/update headers to files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
cmd/goheader
pkg/goheader
scripts
.gitignore
AUTHORS
CONTRIBUTING.md
LICENSE
README.md

README.md

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.

You can’t perform that action at this time.