INNER CODE UNIT · Go

parseTags

cryptag/cryptag · servers/cryptag-webserver/main.go:422

func parseTags(tags []string) ([]string, error) {
	if len(tags) == 0 {
		return nil, errors.New("No tags included in query (not allowed)")
	}

	// Tag format: /?tags=tag1,tag2,tag3
	tags = strings.Split(tags[0], ",")

	return tags, nil
}

//
// TODO(elimisteve): Replace with pluggable server backends
//

type FileSystem struct {
	cryptagPath     string
	tagsPath        string

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…