edu

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package edu provides interactive protocol education platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Badge

type Badge struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Criteria    string `json:"criteria"`
}

Badge represents an achievement badge.

type LearningPath

type LearningPath struct {
	Name    string   `json:"name"`
	Lessons []string `json:"lesson_ids"`
}

LearningPath represents a recommended learning path.

type Lesson

type Lesson struct {
	ID       string `json:"id"`
	Title    string `json:"title"`
	Protocol string `json:"protocol"`
	Level    string `json:"level"` // beginner, intermediate, advanced
	Content  string `json:"content"`
}

Lesson represents a protocol tutorial lesson.

type Platform

type Platform struct {
	Lessons []Lesson
	Quizzes []Quiz
	Paths   []LearningPath
	Badges  []Badge
}

Platform holds the education platform data.

func NewPlatform

func NewPlatform() *Platform

NewPlatform creates a new education platform with default content.

func (*Platform) ListBadges

func (p *Platform) ListBadges() string

ListBadges returns available badges.

func (*Platform) ListLessons

func (p *Platform) ListLessons() string

ListLessons returns available lessons.

func (*Platform) ListPaths

func (p *Platform) ListPaths() string

ListPaths returns learning paths.

type Quiz

type Quiz struct {
	Question string   `json:"question"`
	Options  []string `json:"options"`
	Answer   int      `json:"answer"`
}

Quiz represents a knowledge quiz.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL