add some comments about speed to gonicembed
This commit is contained in:
@@ -13,6 +13,10 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// once i had this written with ~100% text/template but it was very
|
||||||
|
// slow. now this thing is not nice on the eyes or easy to change
|
||||||
|
// but it's pretty fast. which i needed it to for live reloading stuff
|
||||||
|
|
||||||
const (
|
const (
|
||||||
programName = "gonicembed"
|
programName = "gonicembed"
|
||||||
byteCols = 24
|
byteCols = 24
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ package handler
|
|||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
|
// silly test for a simple function. i was getting used to
|
||||||
|
// testing in go at the time. might aswell keep it though
|
||||||
func TestFirstExisting(t *testing.T) {
|
func TestFirstExisting(t *testing.T) {
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
name string
|
name string
|
||||||
|
|||||||
Reference in New Issue
Block a user