Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznecovas committed May 16, 2019
0 parents commit a780187
Show file tree
Hide file tree
Showing 6 changed files with 1,158 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets
621 changes: 621 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Go DVPN web embedder

This library generates an embedded version of the DVPN web.

To re-generate the file, move assets to "assets" folder and run go generate.
37 changes: 37 additions & 0 deletions assets_generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// +build ignore

/*
* Copyright (C) 2019 The "MysteriumNetwork/node" Authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package main

import (
"log"

dvpnweb "github.com/mysteriumnetwork/go-dvpn-web"
"github.com/shurcooL/vfsgen"
)

func main() {
err := vfsgen.Generate(dvpnweb.Assets, vfsgen.Options{
PackageName: "dvpnweb",
VariableName: "Assets",
})
if err != nil {
log.Fatalln(err)
}
}
474 changes: 474 additions & 0 deletions assets_vfsdata.go

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions dvpnweb.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (C) 2019 The "MysteriumNetwork/node" Authors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package dvpnweb

//go:generate go run assets_generate.go

0 comments on commit a780187

Please sign in to comment.