mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47: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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/PeernetOfficial/core"
|
"github.com/PeernetOfficial/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if status, err := core.LoadConfig("Settings.yaml"); err != nil {
|
if status, err := core.LoadConfig("Settings.yaml"); err != nil {
|
||||||
fmt.Printf("Error loading config file: %s", err.Error())
|
fmt.Printf("Error loading config file: %s", err.Error())
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
core.InitLog()
|
core.InitLog()
|
||||||
core.Init()
|
core.Init()
|
||||||
core.UserAgent = "Your application/1.0"
|
core.UserAgent = "Your application/1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
core.Connect()
|
core.Connect()
|
||||||
|
|
||||||
// use functions from core package, for example to find and download files
|
// use functions from core package, for example to find and download files
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user