-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: nest generated files to clean up repo root
- Loading branch information
Showing
3 changed files
with
67 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// go-libtor - Self-contained Tor from Go | ||
// Copyright (c) 2018 Péter Szilágyi. All rights reserved. | ||
|
||
// Package libtor is a self-contained static tor library. | ||
package libtor | ||
|
||
// This file is a wrapper around the internal libtor package to keep the original | ||
// Go API, but move the thousands of generated Go files into a sub-folder, out of | ||
// the way of the repo root. | ||
|
||
import ( | ||
"github.com/cretz/bine/process" | ||
"github.com/ipsn/go-libtor/libtor" | ||
) | ||
|
||
// ProviderVersion returns the Tor provider name and version exposed from the | ||
// Tor embedded API. | ||
func ProviderVersion() string { | ||
return libtor.ProviderVersion() | ||
} | ||
|
||
// Creator implements the bine.process.Creator, permitting libtor to act as an API | ||
// backend for the bine/tor Go interface. | ||
var Creator process.Creator = libtor.Creator |
File renamed without changes.
This file contains 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