github.com/frodejac/aoc-2022@v0.0.0-20221213081734-037c741b1c89/internal/io/io.go (about)

     1  package io
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  const ASSET_DIR = "assets"
     8  
     9  func getInputAssetName(day int) string {
    10  	return fmt.Sprintf("%s/day%02d/input.txt", ASSET_DIR, day)
    11  }
    12  
    13  func getSolutionAssetName(day int, part int) string {
    14  	return fmt.Sprintf("%s/day%02d/part%d.txt", ASSET_DIR, day, part)
    15  }