github.com/vpayno/adventofcode-2022-golang-workspace@v0.0.0-20230605190011-dbafed5593de/internal/day01/init.go (about)

     1  // Package day01 is the module with the cli logic for the cmd application.
     2  package day01
     3  
     4  // Config holds the application's configuration.
     5  type Config struct {
     6  	appName       string
     7  	inputFileName string
     8  }
     9  
    10  // Setup creates the applications configuration object.
    11  func Setup(appName string) Config {
    12  
    13  	conf := Config{
    14  		appName:       appName,
    15  		inputFileName: "data/" + appName + "/" + appName + "-input.txt",
    16  	}
    17  
    18  	return conf
    19  }