forked from arjunmahishi/go-interface-mocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (55 loc) · 2.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Golang interface mocker</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="vendors/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="vendors/codemirror/theme/material-darker.css">
</head>
<body>
<div class="row banner">
<div class="col-sm">
<h1 class="text-center">Go mock code generator</h1>
</div>
<div class="col-sm">
<p>
This is a tool to instantly generate mock code for a given interface. This can be used to
mock dependancies while writing unit tests. To no more about how to mock dependancies and write good
unit tests, refer this.
</p>
</div>
<div class="col-sm text-center">
<a href="https://github.com/arjunmahishi/go-interface-mocker">
<div class="col">
<img class="img-fluid github-logo" src="img/Octocat.png"/>
</div>
<div class="col">
<p>Check out this project on GitHub</p>
</div>
</a>
</div>
</div>
<div class="row justify-content-sm-center">
<div class="col-sm col-md-6">
<h2 class="text-center">Interface</h2>
<div class="editor" id="input-editor"></div>
</div>
<div class="col-sm col-md-6">
<h2 class="text-center">Mock code</h2>
<div class="editor" id="output-editor"></div>
</div>
</div>
<footer class="text-center text-muted">
© 2019 <a href="https://github.com/arjunmahishi">Arjun Mahishi</a>
<!-- <br>
The Go Gopher artwork is a derivative of that by Renee French. -->
</footer>
</body>
<script src="vendors/codemirror/lib/codemirror.js"></script>
<script src="vendors/codemirror/mode/go/go.js"></script>
<script src="js/main.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</html>