Giter Club home page Giter Club logo

Comments (5)

unknwon avatar unknwon commented on August 16, 2024

Hi @ccampbell , this library uses back quote xxx and triple quotes """xxx""" for keys and values:

foo = `some value`
bar = """line1
line2
line3"""

and uses normal quotes "xxx" for only keys:

"key with = special chars" = my value

Not sure if answers your question.

But if you insist to have " work with values, I can make it. ๐Ÿ˜„

from ini.

ccampbell avatar ccampbell commented on August 16, 2024

@unknwon thanks for the reply. The issue is that I am trying to reuse a config file from another project for an rpc service and pulling from a python cfg file. It is not ini but it is basically the same. In python the quotes are required or else it will break.

I have been working around it by stripping the quotes out after pulling the value, but I do think it is worth handling in your package ๐Ÿ˜„

from ini.

unknwon avatar unknwon commented on August 16, 2024

Hi @ccampbell , I've pushed code and please use go get -u gopkg.in/ini.v1 to update and test, thanks!

from ini.

ccampbell avatar ccampbell commented on August 16, 2024

Thanks, seems to work ๐Ÿ˜„

from ini.

unknwon avatar unknwon commented on August 16, 2024

@ccampbell thanks your confirmation!

from ini.

Related Issues (20)

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.