mirror of
https://github.com/kjanat/articulate-parser.git
synced 2026-01-16 13:02:08 +01:00
This commit introduces a series of small refactorings and style fixes across the codebase to improve consistency and leverage modern Go features.
Key changes include:
- Adopting the Go 1.22 `reflect.TypeFor` generic function.
- Replacing `interface{}` with the `any` type alias for better readability.
- Using the explicit `http.NoBody` constant for HTTP requests.
- Updating octal literals for file permissions to the `0o` prefix syntax.
- Standardizing comment formatting and fixing minor typos.
- Removing redundant blank lines and organizing imports.
26 lines
846 B
Go
26 lines
846 B
Go
// Package version provides version information for the Articulate Parser.
|
|
// It includes the current version, build time, and Git commit hash.
|
|
package version
|
|
|
|
// Version information.
|
|
var (
|
|
// Version is the current version of the application.
|
|
// Breaking changes from 0.4.x:
|
|
// - Renamed GetSupportedFormat() -> SupportedFormat()
|
|
// - Renamed GetSupportedFormats() -> SupportedFormats()
|
|
// - FetchCourse now requires context.Context parameter
|
|
// - NewArticulateParser now accepts logger, baseURL, timeout
|
|
// New features:
|
|
// - Structured logging with slog
|
|
// - Configuration via environment variables
|
|
// - Context-aware HTTP requests
|
|
// - Comprehensive benchmarks and examples.
|
|
Version = "1.0.0"
|
|
|
|
// BuildTime is the time the binary was built.
|
|
BuildTime = "unknown"
|
|
|
|
// GitCommit is the git commit hash.
|
|
GitCommit = "unknown"
|
|
)
|