Created
November 1, 2023 12:11
-
-
Save run-dlang/7f5716165f6095ea5e901eac875bf74e to your computer and use it in GitHub Desktop.
Code shared from run.dlang.io. Run with '-i -run test.d'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- test.d | |
module test; | |
import libweb; | |
import std; | |
void main() | |
{ | |
writeln("test"); | |
runClient(); | |
runServer(); | |
runConv(); | |
runText(); | |
} | |
--- 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() { import std; writeln("runClient"); } | |
--- libweb/server.d | |
module libweb.server; | |
void runServer() { import std; writeln("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() { import std; writeln("runConv"); } | |
--- libweb/utils/text.d | |
module utils.text; | |
void runText() { import std; writeln("runText"); } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment