moved version to top

This commit is contained in:
Niko Abeler 2022-07-23 15:17:14 +02:00
parent fc347f9f29
commit d1819859a3
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import (
//go:embed embed/base.html
var base_template string
var VERSION = "0.0.1"
type Repository struct {
name string
@ -65,7 +66,7 @@ func (repo Repository) CreateUser(name string) (User, error) {
os.Mkdir(path.Join(user_dir, "public"), 0755)
// create Meta files
os.WriteFile(path.Join(user_dir, "meta", "VERSION"), []byte("0.0.1"), 0644)
os.WriteFile(path.Join(user_dir, "meta", "VERSION"), []byte(VERSION), 0644)
os.WriteFile(path.Join(user_dir, "meta", "base.html"), []byte(base_template), 0644)
return new_user, nil