Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Simple and practical module for manipulating ini/cfg file.

License

NotificationsYou must be signed in to change notification settings

Ddiidev/ini-v

Repository files navigation

Simple and practical module for manipulating ini/cfg file.

Documentation

You can access the documentationhere.

Install

  v install Ddiidev.ini

Or

  v install https://github.com/Ddiidev/ini-v

Usage

importldedev.ini// or "import ini" depends on how it was installed.structKeys {pub:    peoplesstruct {        p1string        p2string    }    agesstruct {        a1int        a2int    }}consts=r'[peoples]p1=Andrép2=Luiz[ages]a1=26a2=29'fnmain() {k:= ini.reader_to[Keys](s)!dump(k)}

result:

[.\\teste.v:26] k: Keys{    peoples: struct {        p1: 'André'        p2: 'Luiz'    }    ages: struct {        a1: 26        a2: 29    }}

Functionalities

  • "read_ini" to map
  • "serrialize" to string
  • "write_ini" to file ini
  • "deserialize" string to file ini
  • "reader_to[T]" file/content for type T

It is still not possible to write a T object to the ini file.

Licença

MIT

About

Simple and practical module for manipulating ini/cfg file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp