Skip to content

Instantly share code, notes, and snippets.

View sozo-learn's full-sized avatar

matari sozo-learn

View GitHub Profile
@sozo-learn
sozo-learn / validation_and_conversion_in_Go.md
Created November 17, 2025 03:25
validation and conversion in Go

This conversation was generated with Duck.ai (https://duck.ai) using Anthropic's Claude Haiku 3.5 Model.
AI chats may display inaccurate or offensive information (see https://duckduckgo.com/duckai/privacy-terms for more info).

====================

User prompt 1 of 3 - 11/16/2025, 7:02:15 PM:

context: the go programming language
please explain what is happening in this line, policyID := c.Param("id")

Claude Haiku 3.5:

@sozo-learn
sozo-learn / convert_xml.bas
Created March 21, 2024 00:55
take workbook that is Active (open) and save as "XML Spreadsheet 2003"
Attribute VB_Name = "Module1"
Sub SaveAsXMLSpreadsheet2003()
Dim FileName As String
Dim Path As String
' Get the path and filename for saving
Path = ActiveWorkbook.Path
FileName = ActiveWorkbook.Name
FileName = Left(FileName, InStrRev(FileName, ".") - 1) ' Remove the extension
FileName = Path & "\" & FileName & ".xml"