-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
27 lines (23 loc) · 889 Bytes
/
main.go
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
// Copyright © 2018-2020 Satinderjit Singh.
//
// See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at
// the top-level directory of this distribution for the individual copyright
// holder information and the developer policies on copyright and licensing.
//
// Unless otherwise agreed in a custom licensing agreement, no part of the
// kmdgo software, including this file may be copied, modified, propagated.
// or distributed except according to the terms contained in the LICENSE file
//
// Removal or modification of this copyright notice is prohibited.
package kmdgo
import (
"fmt"
"github.com/satindergrewal/kmdgo/kmdutil"
)
func main() {
appName := "komodo"
dir := kmdutil.AppDataDir(appName, false)
fmt.Println(dir)
rpcuser, rpcpass, rpcport := kmdutil.AppRPCInfo(appName)
fmt.Printf("RPC User: %s\nRPC Password: %s\nRPC Port: %s\n", rpcuser, rpcpass, rpcport)
}