Skip to content

Instantly share code, notes, and snippets.

@run-dlang
Created November 1, 2023 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save run-dlang/4dca17b6f50df497aff6ec5209de14df to your computer and use it in GitHub Desktop.
Save run-dlang/4dca17b6f50df497aff6ec5209de14df to your computer and use it in GitHub Desktop.
Code shared from run.dlang.io. Run with '-i -run test.d'
--- test.d
module test;
import libweb;
void main()
{
runClient();
runServer();
runConv();
runText();
import std;
writeln("test");
}
--- libweb/package.d
module libweb;
public import libweb.client;
public import libweb.server;
public import libweb.utils;
--- libweb/client.d
module libweb.client;
void runClient() { }
--- libweb/server.d
module libweb.server;
void runServer() { }
--- libweb/utils/package.d
module libweb.utils;
public import libweb.utils.conv;
public import libweb.utils.text;
--- libweb/utils/conv.d
module utils.conv;
void runConv() { }
--- libweb/utils/text.d
module utils.text;
void runText() { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment