generated from templates/go-generic
Dan Anglin
ac7d73f013
- added profiles and services to nanoc.yaml - created an internal module for the build code so that those dependencies are not included in the main module. - upgraded Go to v1.22 and specified that only the GET method is valid for the root path.
16 lines
211 B
Go
16 lines
211 B
Go
//go:build mage
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func changeToProjectRoot() error {
|
|
if err := os.Chdir("../.."); err != nil {
|
|
return fmt.Errorf("unable to change directory; %w", err)
|
|
}
|
|
|
|
return nil
|
|
}
|