gen_server
% escript will ignore the first line
main(_) ->
foo_srv:start_link(),
Result = foo_srv:foo(),
io:format("Result: ~p", [Result]).INFO
% escript will ignore the first line
main(_) ->
foo_srv:start_link(),
Result = foo_srv:foo(),
io:format("Result: ~p", [Result]).