• Stars
    star
    11
  • Rank 1,638,412 (Top 34 %)
  • Language
    Go
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Configure Go applications from the environment

envconf

Configure your Go application from the environment.

Supports most basic Go types and works nicely with the built in flag package.

package main

import(
  "flag"
  "fmt"
  . "github.com/ian-kent/envconf"
)

func main() {
  count := flag.Int("count", FromEnvP("COUNT", 15).(int), "Count target")
  flag.Parse()
  for i := 1; i <= *count; i++ {
    fmt.Printf("%d\n", i)
  }
}

Licence

Copyright ©‎ 2014, Ian Kent (http://iankent.uk).

Released under MIT license, see LICENSE for details.

More Repositories

1

gptchat

A GPT-4 client which gives your favourite AI a memory and tools for self-improvement
Go
337
star
2

gofigure

Go configuration made easy!
Go
67
star
3

linkio

Simulate network link speed
Go
53
star
4

go-log

A logger, for Go
Go
42
star
5

purl

Perl, but fluffy like a cat!
Go
40
star
6

goose

Server-Sent Events in Go
Go
34
star
7

ikettle2

Hacks for the Smarter iKettle 2.0
Java
18
star
8

MailHog

Inspired by MailCatcher, based on M3MTA
Perl
14
star
9

vagrant-scala-play-mongodb

Vagrant build for Ubuntu with Scala, Play Framework and MongoDB
13
star
10

gopan

Perl dependency management toolchain
Go
12
star
11

production-ready-go

Code samples from Production Ready Go talk at Golang UK 2017
Go
10
star
12

M3MTA

Experimental Mojolicious IOLoop mail transfer agent with MongoDB backend
Perl
7
star
13

atom-gradient-syntax-theme

Animated gradient syntax highlighting
CSS
5
star
14

cachebot

A Slack bot for CloudFlare
Go
4
star
15

cardiff-go-production-ready-go

Go
3
star
16

ssbs

Super Simple Build Server
Go
3
star
17

alexa

Go library for creating Amazon Alexa skills with Apex
Go
3
star
18

go-angularjs-jquery-bootstrap-boilerplate

Go + AngularJS + jQuery + Bootstrap boilerplate web application
Go
3
star
19

gotcha

A cloud-friendly web application framework in Go
Go
2
star
20

service.go

A microservice framework for Go
Go
2
star
21

RhUnit

A qUnit compatible javascript unit testing framework for Rhino
JavaScript
2
star
22

go-webapp

Demonstration Go web application
Go
1
star
23

ktee

Tee to a Kafka topic (see https://github.com/ian-kent/ktail)
Go
1
star
24

sfs

Static File Server
Go
1
star
25

bash-env

Bash environment configuration
Shell
1
star
26

dp-florence-api

POC for replacement Florence API
Go
1
star
27

automated-docs

JavaScript
1
star
28

htmlform

HTML form handling for Go
Go
1
star
29

imagestore

S3 backed imagestore for Marathon
Go
1
star
30

packer-ansible-centos-minimal

CentOS 6.5 minimal packer build with ansible install
Shell
1
star
31

civil-service-competency-framework

The (UK) Civil Service Competency Framework - in JSON and TOML
Go
1
star
32

ian-kent.github.io

CSS
1
star
33

learning-elm

Me learning Elm
Elm
1
star
34

vagrant-perl-mojolicious-mongodb

Vagrant build for Ubuntu with Perl, Mojolicious and MongoDB
Shell
1
star