Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support batch writing of values? #10

Closed
Ri0nGo opened this issue Oct 11, 2023 · 3 comments
Closed

Support batch writing of values? #10

Ri0nGo opened this issue Oct 11, 2023 · 3 comments

Comments

@Ri0nGo
Copy link

Ri0nGo commented Oct 11, 2023

Hi,Does it support batch writing of values? Only a single write value is seen in the example directory

@danomagnum
Copy link
Owner

Yes. It supports writing multiple values at once with gologix:"<tagname>" tagged structs. It also has the ability to do a map[string]interface{} with the writeDict() function where the keys of the map are the tag paths and the values are the values to write, but this isn't exported for some reason.

I'll try and get that exported for easier use (read already has this exported as the ReadList() function) and get an example made up for it.

In the meantime you should be able to use a tagged struct like I said.

@danomagnum
Copy link
Owner

I released beta 17 where I have made the function for writing multiple tags at once external. See "MultiWrite" in the example folder for what I think you're looking for.

Let me know if you have any issues.

@Ri0nGo
Copy link
Author

Ri0nGo commented Oct 13, 2023

That is my want. Thank you.

@Ri0nGo Ri0nGo closed this as completed Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants