Questions tagged [toml]

TOML is a language designed for configuring software

TOML stands for Tom’s Obvious, Minimal Language. It is a language designed for configuring software.

From its repository:

TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages.

Resources

238 questions
-1
votes
0 answers

Cannot get toml::parse_file to then assign to variables in C++

I have a Plasma simulation code where I would like to use a "input.toml" file which has relevant parameters which is read and then assigned to global variables. The input.toml file is ["Parallelization"] npar = 8 ["Plasma parameters"] # 2) epshat…
Grappler
  • 1
  • 2
-1
votes
1 answer

Converting Toml format to Json Format in Golang

I have toml file and that needs to be converted to Json and vice versa and in golang packages it has just command tools rather than functions. It would be great if anyone has precise idea about how to convert toml to json and vice versa in Go…
-1
votes
1 answer

How to change the hard coded port to their environment names in deployement.toml?

I am using some offset as I am running 2 nodes in one Virtual machine but looks like some port like (5672,9611,9711) are directly present so I suppose offset wont be applied to this ports and i will have to change it manually to get it work ... is…
-1
votes
1 answer

CLI Go Config.toml file location

I am attempting to test a Golang application hauser locally on via -bash CLI before deploying on a VM. Per the documentation, I compiled locally and copied the example-config.toml file. I then mapped to the GOPATH and opened hauser.exe to open…
rokenbk97
  • 35
  • 8
-1
votes
2 answers

Error in compiling golang after migrating to centos

I was migrating my Golang programs from windows to Centos 7 It worked perfectly in Windows but when I tried to compile on centos I get errors like main.go:20:3: cannot find package "github.com/BurntSushi/toml" in any of: …
arsaphone
  • 33
  • 7
-1
votes
1 answer

How to parse simple toml in perl?

I need implement user friendly configuration file to my perl's script. I choose toml, but im not sure how working TOML parser. backtest.toml file strategies1 = [ neuralnet, BBRSI ]; script perl: use TOML qw(from_toml to_toml); use Data::Dumper; my…
-2
votes
1 answer

Rust Serialize and Deserialize toml

I'm getting a very useless error from serde. No matter what I do I can't seem to get this toml file to be put in the structs. My toml file: [[list]] host = "127.0.0.1:8080" [[list.server_options.Static]] dir = "somedir" error_page =…
Rick
  • 3
  • 2
-2
votes
1 answer

Construct object from config file in C++

I have a toml file that I would like to convert to an instance of a class. [Person] Name = "Foo Bar" BirthDay = "1979-05-27" into an instance of the class: class Person { public: std::string Name; std::string BirthDay; } I can't image I am the…
Frank
  • 2,446
  • 7
  • 33
  • 67
-3
votes
1 answer

Python .toml and .cfg nonsense?

I am having a hard time configure proper cfg and toml files.... I just want to understand these, I am coming from a Java background, and nothing clear from my researches. Why namespaces are so bad ? Simple python project would take the first folder…
PiTyFox
  • 5
  • 5
-3
votes
2 answers

How to replace single quotes that appear when using split() function

I have a string, list1 that I'm converting to a list in order to compare it with another list, list2, to find common elements. The following code works, but I need to replace ' with " in the final output, since it will be used in TOML front…
user9285774
-4
votes
1 answer

Unable to decode toml file

I want to read configs from a toml file. conf/conf.toml db_host = "127.0.0.1" db_port = 3306 db_user = "root" db_password ="123456" conf/conf.go file package conf import ( "log" "github.com/BurntSushi/toml" ) type appcfg struct { …
yuyu1630
  • 1
  • 3
-5
votes
1 answer

Unable to parse TOML file even after setting struct tags

I installed dependency using: go get github.com/BurntSushi/toml I created a toml file in the same folder as my main.go: . |-- cloud.toml `-- main.go cloud.toml [database] host = "localhost" port = 8086 secure = false username = "test" password =…
Shan-Desai
  • 3,101
  • 3
  • 46
  • 89
1 2 3
15
16