Created
July 16, 2025 03:38
-
-
Save breadchris/95464f1b182a0caadd926eabd025b701 to your computer and use it in GitHub Desktop.
go json api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func CreateTodo(req CreateTodoRequest) (CreateTodoResponse, error) { | |
// Implementation would go here | |
return CreateTodoResponse{}, nil | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CreateTodo, ListTodos, Todo, CreateTodoRequest } from './api'; | |
const response = await CreateTodo({ | |
title: "Learn TypeScript" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment