Skip to content
no-srcPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

fserver

Build License Go Reference Go Report Card Release

Installation

go get -u github.com/no-src/fserver

Quick Start

package main

import (
	"embed"

	"github.com/no-src/fserver"
	"github.com/no-src/log"
)

// webDist the web dist resource
//
//go:embed dist
var webDist embed.FS

func main() {
	defer log.Close()

	exit, port := fserver.InitFlag(printVersion, printAboutInfo)
	if exit {
		return
	}
	fserver.Run(port, "/dist", webDist)
}

func printVersion() {
	log.Log("version info")
}
func printAboutInfo() {
	log.Log("about info")
}

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages