
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Go言語でJavaScriptを使ってオリジナルなコマンドシェルを作る(EXCELの読み込みオブジェクトの追加) - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Go言語でJavaScriptを使ってオリジナルなコマンドシェルを作る(EXCELの読み込みオブジェクトの追加) - Qiita
import "github.com/tealeg/xlsx" type excelSheet struct { js *jsRuntime sheet *xlsx.Sheet } func (... import "github.com/tealeg/xlsx" type excelSheet struct { js *jsRuntime sheet *xlsx.Sheet } func (js *jsRuntime) excel(file, sheet string) *excelSheet { rt := js.runtime xfile, err := xlsx.OpenFile(file) if err != nil { rt.Interrupt(rt.NewGoError(err)) return nil } xsheet := xfile.Sheet[sheet] if xsheet == nil { rt.Interrupt("Error: not found excel sheet: " + sheet) return nil } return &excelSheet{