Getting Started¶
Summary¶
Language | Code |
---|---|
C | #include <dogma.h> |
C++ | #include <dogma.hpp> |
Dart | import 'package:dogma/dogma.dart'; |
Go | import "github.com/dogmatists/dogma.go/dogma" |
Java | import dogma.*; |
JS | import * as dogma from "./dogma.js"; |
Protobuf | import "dogma.proto"; |
Python | import dogma |
Ruby | require 'dogma' |
Rust | extern crate dogma; |
Zig | const dogma = @import("dogma"); |
Loading the library¶
#include <dogma.h>
#include <dogma.hpp>
import 'package:dogma/dogma.dart';
import "github.com/dogmatists/dogma.go/dogma"
import dogma.*;
import * as dogma from "./dogma.js";
import "dogma.proto";
import dogma
require 'dogma'
extern crate dogma;
const dogma = @import("dogma");
Checking the library version¶
printf("Dogma for C %d.%d.%d\n",
DOGMA_VERSION_MAJOR, DOGMA_VERSION_MINOR, DOGMA_VERSION_PATCH);
std::printf("Dogma for C++ %d.%d.%d\n",
dogma::version::major, dogma::version::minor, dogma::version::patch);
// TODO
// TODO
// TODO
// TODO
# TODO
# TODO
// TODO
// TODO