entao_config 1.1.2 copy "entao_config: ^1.1.2" to clipboard
entao_config: ^1.1.2 copied to clipboard

dart config file with struct formats.

example/entao_config_example.dart

import 'package:entao_config/src/IndentBuffer.dart';

void main() {
  IndentBuffer buf = IndentBuffer();
  buf.write("user:").brace(() {
    buf.indentLine.write("phone:").write("10086");
    buf.indentLine.write("email:").write("a@b.com");
    buf.indentLine.write("values:").bracket(() {
      buf.indentLine.write("A");
      buf.indentLine.write("B");
    }, indent: true);
  }, indent: true);
  buf.indentLine.write("port: 80");

  print(buf.toString());
}
0
likes
120
points
32
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

dart config file with struct formats.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

entao_dutil, entao_lint, path, println

More

Packages that depend on entao_config