This is an unofficial and incomplete development kit for https://onlinesurveys.ac.uk. This was created simply to complete my own task and therefor is missing the majority of implementations for each json class currently. See the to-do list for a feature list.
Go supports modules since v1.11+. This package uses go-modules. Go modules require that GOPATH is empty => unset GOTPATH
**
go get github.com/DeanHnter/JiscOnlineSurveySDK
package main
import (
"fmt"
Surveys "github.com/DeanHnter/JiscOnlineSurveySDK"
)
func main() {
survey := Surveys.CreateSurvey("Helloworld", Surveys.English)
page1 := survey.AddPage("Page 1", Surveys.Show)
page1.AddNote("Hello world!", Surveys.Show)
survey.AddPage("Final page", Surveys.Show)
json := survey.ToJson()
fmt.Println(json)
survey.Save("helloworld-survey.json", json)
}
-
Page - Complete
-
MultipleChoice - Complete
-
SelectionOption - Complete
-
FreeText - Incomplete
-
MultipleAnswer - Incomplete
-
SelectionList - Incomplete
-
DatePicker - Incomplete
-
TimePicker - Incomplete
-
DateTimePicker - Incomplete
-
Scale - Complete
-
ScaleRow - Complete
-
Grid - Incomplete
-
GridRow - Incomplete
-
Note - Complete