GithubHelp home page GithubHelp logo

config's Introduction

Revel Framework

Build Status License Go Report Card

A high productivity, full-stack web framework for the Go language.

Current Version: 1.1.0 (2022-04-11)

Supports go.mod package management

Quick Start

Install Revel:

go install github.com/revel/cmd/revel@latest

Create & Run your app:

revel new -a my-app -r

Open http://localhost:9000 in your browser and you should see "It works!"

Community

Learn More

Contributing

Contributors

config's People

Contributors

bgmerrell avatar brendensoares avatar huandu avatar jeevatkm avatar mordyovits avatar notzippy avatar pushrax avatar robfig avatar sbinet avatar tigrang avatar tripledogdare avatar yuki2006 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

config's Issues

Please clarify copyright

I'd like to package revel/config for Debian, however the copyright is not clear.

The readme states that the source files are distributed under the Mozilla Public License, while every source file claim to have an Apache license. The subdirectory Doc contains the Apache license. Is it an error in the Readme? Thanks.

Cannot read environment variables

To reproduce:

  1. Set an environment variable export ABC=test
  2. Insert the following to the app.conf my.abc = ${ABC}
  3. Read the config and print out the value fmt.Println(revel.Config.StringDefault("my.abc", ""))

Expected output:
test

Actual output:

Go version: go version go1.11 darwin/amd64
Revel version:

Revel Version = "0.20.0"
Revel BuildDate = "2018-09-23"
Revel MinimumGoVersion = ">= go1.8"

Revel Command Utility Tool
Version 0.20.1
Build Date 2018-09-30
Minimum Go Version >= go1.8
Compiled By   go1.11 darwin/amd64

go version go1.11 darwin/amd64

Default value for ENV vars

Eg. allow ${FOOBAR:barfoo}

${FOOBAR:barfoo} -> if env FOOBAR is not set, use barfoo as value
${FOOBAR::barfoo} -> if env FOOBAR is not set or set and empty, use barfoo as value

Feature: Read a config from a string

The project exposes a method to read a config from a file, but not from a string.

Reading a config from a string would be useful in case the configuration file is an embedded asset within the application such as is possible with go-bindata.

This would allow us to implement a useful feature in Revel.

The implementation may be as simple as exposing the read() method from read.go.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.