mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-16 18:37:51 +01:00
Convert tabs to white spaces
This commit is contained in:
20
README.md
20
README.md
@@ -10,25 +10,25 @@ Current version: 0.1 (pre-alpha)
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/PeernetOfficial/core"
|
||||
"github.com/PeernetOfficial/core"
|
||||
)
|
||||
|
||||
func init() {
|
||||
if status, err := core.LoadConfig("Settings.yaml"); err != nil {
|
||||
fmt.Printf("Error loading config file: %s", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
if status, err := core.LoadConfig("Settings.yaml"); err != nil {
|
||||
fmt.Printf("Error loading config file: %s", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
core.InitLog()
|
||||
core.Init()
|
||||
core.UserAgent = "Your application/1.0"
|
||||
core.Init()
|
||||
core.UserAgent = "Your application/1.0"
|
||||
}
|
||||
|
||||
func main() {
|
||||
core.Connect()
|
||||
core.Connect()
|
||||
|
||||
// use functions from core package, for example to find and download files
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user