Akilan1999 / p2p-rendering-computation

p2p network to enable running distributed computation and rendering.
https://p2prc.akilan.io/
GNU General Public License v2.0
28 stars 10 forks source link

added the possiblility to add custom varaibles #70

Closed Akilan1999 closed 3 years ago

Akilan1999 commented 3 years ago

Add custom variable to extend the use case of P2PRC . The code snippet below shows a sample implementation of the following PR.

// sample implementation 
import (
    "git.sr.ht/~akilan1999/p2p-rendering-computation/config"
)

// Main function 
func main(){
  // Sets the Env variable name to TEST
  config.SetEnvName("TEST")

 // Reads from the config file based on the path 
 // provided in the env variable TEST
 config.ConfigInit()
}