Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

apitypings

command
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:18Imported by:0

Details

Repository

github.com/coder/coder

Links

README

APITypings

This main.go generates typescript types from the codersdk types in Go.

Features

  • Supports Go types
    • Basics (string/int/etc)
    • Maps
    • Slices
    • Enums
    • Pointers
    • External Types (usesany atm)
      • Some custom external types are hardcoded in (eg: time.Time)

Type overrides

type Foo struct {// Force the typescript type to be a numberCreatedAt time.Duration `json:"created_at" typescript:"number"`}

Ignore Types

Do not generate ignored types.

// @typescript-ignore InternalTypetype InternalType struct {// ...}

Future Ideas

  • Use a yaml config for overriding certain types

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp