summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-01-18 18:28:15 +0100
committernsensfel <SpamShield0@noot-noot.org>2019-01-18 18:28:15 +0100
commit9fb6f17e871bc8dc5ad8f86032bdaf7e5497fb4a (patch)
tree4d0147b04e69966971f44eb284f2b7813566cb6b /src/shared/reply/shr_goto.erl
parent4d420088752a9d2212129ac10b8772f10d4c02ef (diff)
Adds "GoTo" server reply.
Diffstat (limited to 'src/shared/reply/shr_goto.erl')
-rw-r--r--src/shared/reply/shr_goto.erl26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/shared/reply/shr_goto.erl b/src/shared/reply/shr_goto.erl
new file mode 100644
index 0000000..745374a
--- /dev/null
+++ b/src/shared/reply/shr_goto.erl
@@ -0,0 +1,26 @@
+-module(shr_goto).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-export([generate/1]).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% LOCAL FU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